-
Notifications
You must be signed in to change notification settings - Fork 77
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
Deal with Nan timestamps #388
Conversation
Codecov Report
@@ Coverage Diff @@
## master #388 +/- ##
==========================================
+ Coverage 45.47% 45.62% +0.14%
==========================================
Files 64 64
Lines 4723 4736 +13
==========================================
+ Hits 2148 2161 +13
Misses 2575 2575
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me. Do we still need to define missing time values as 0 or does this take into account the possibility of encounter nan
values?
@morcuended it deals with nan like it would be zero. So your choice now, what you want |
not strong preference, I would leave it as it is now with |
what about the interpolation, is it dealing with it properly? |
Can you point me to the interpolation code? |
functions |
May you update the branch with the last merge fixing the muon output filename so I can test it? |
These are not missing anymore but |
@morcuended did you test this? can we move ahead with the merge? |
Yes, I tested that the script runs well without problems and files are produced normally. However, I did not have the time to look into the time values themselves. |
As discussed in #386, adding support for nan values in
unix_tai_to_utc
I also renamed the function
unix_tai_to_time
as it does not actually convert to utc.It correctly creates an
astropy.Time
object, that is still in tai but converts to unix utc timestamp when accessing.unix
.For convenience and clarity, I would suggest to compare times to
INVALID_TIME
as now defined in the module.