-
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
Consider astropy 4.1 in order to use the new unix_tai
format
#324
Comments
yes, we had to make some fixes for astropy 4.0, so it's only supported in the dev for now. We will release a new version soon, though. |
One of the big changes with astropy 4 and also the latest numpy is that now all numpy functions support astropy units (which breaks things where we had assumed units were ignored). That may cause you some problems as well. So just upgrading may not be so simple. |
thanks @kosack. I saw your PRs and that is why I was willing to test astropy 4 and see which errors popped up, but Travis already throws conflicts in the environment creation due to the hardcoding in ctapipe |
Just to clarify: it is not hardcoded. It is required to be an astropy 3.x, as we require 3 and 4.0 broke some stuff. It's not hard coded, it specifies which versions work with ctapipe. |
We found out that the definitions of UCTS uses: astropy The ucts scale can be implemented by using:
|
I think I also ran into this issue when playing with UCTS timestamps in UTC/TAI. I thought at that time that the |
I opened a PR in astropy (ptp is a general standard, so it should apply to more people) to add it and in the mean time added it also to |
Ok, full circle on this: we realized that astropy just got it wrong with unix_tai in 4.1, it will be fixed in 4.2.1 and in the new version of the source. |
This is now fixed. |
As discussed in #288, I suggest considering astropy 4.1 whenever it is out. It will allow us to use the newly added class that defines the
unix_tai
format which takes into account the leap seconds to easily transform Time objects betweentai
andutc
scales.In the astropy version 3.2.3 we currently use in lstchain,
unix
format is always consideringutc
scale without taking into account the leap seconds.The text was updated successfully, but these errors were encountered: