Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve clock error reporting #1720

Merged
merged 3 commits into from
Feb 21, 2024

Conversation

aarchiba
Copy link
Contributor

When PINT tries to read a clock file with out-of-order entries, it will raise an exception. (Such files have never worked correctly on any of TEMPO, TEMPO2, or PINT.) This PR makes sure that includes the first two out-of-order MJDs to aid in diagnosing the problem.

Helped with both ipta/pulsar-clock-corrections#18 and ipta/pulsar-clock-corrections#19

Copy link

codecov bot commented Feb 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fa790eb) 68.96% compared to head (8b7f6c1) 68.97%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1720   +/-   ##
=======================================
  Coverage   68.96%   68.97%           
=======================================
  Files         105      105           
  Lines       24696    24697    +1     
  Branches     4409     4409           
=======================================
+ Hits        17031    17034    +3     
+ Misses       6560     6559    -1     
+ Partials     1105     1104    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aarchiba aarchiba added enhancement awaiting review This PR needs someone to review it so it can be merged minor A minor PR that doesn't need a lot of thought labels Feb 18, 2024
@dlakaplan
Copy link
Contributor

Looks good to me. Is this ready for merging?

@aarchiba
Copy link
Contributor Author

Yes, it's ready to go.

@dlakaplan dlakaplan merged commit eb1f48b into nanograv:master Feb 21, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review This PR needs someone to review it so it can be merged enhancement minor A minor PR that doesn't need a lot of thought
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants