-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Time mix-in column does not round-trip when written to FITS #16413
Comments
@astrofrog - you need to read back with |
Thanks! Shouldn't this kwarg apply to SkyCoord too? |
IIRC we added the For SkyCoord there is no such ambiguity and it round-trips without |
Ok thanks! I wonder if we should consider renaming |
Well that ship has sailed and I'm not sure it is worth the churn to rename it. There is also the possibility that it might apply for some future mixin which is not Time, though that in itself is not a compelling argument. |
Hi humans 👋 - this issue was labeled as Close? approximately 13 hours ago. If you think this issue should not be closed, a maintainer should remove the Close? label - otherwise, I will close this issue in 7 days. If you believe I commented on this issue incorrectly, please report this here |
@taldcroft thinking about this more, if we are writing the file and storing mixin metadata about the time column it should be unambiguous though when reading back in right? I understand the ambiguity for files not produced by astropy of course. |
It turns out that FITS has support for time such that in your case there is no mixin metadata. @aaryapatil's GSoC project involved a deep dive into the FITS specification and mapping
Would it help to make the default for |
And yes, I believe that if there is astropy-specific mixin metadata in the FITS file then an astropy object is returned. |
I'm going to close this issue as per my previous message, but if you feel that this issue should stay open, then feel free to re-open and remove the Close? label. If this is the first time I am commenting on this issue, or if you believe I closed this issue incorrectly, please report this here |
Description
When making a table with a mixin
Time
column and writing it to FITS, the time column is not restored as aTime
object when reading the file back.Expected behavior
The column should be read back in as a
Time
object, as is the case forSkyCoord
.How to Reproduce
Versions
cc @taldcroft
The text was updated successfully, but these errors were encountered: