-
Notifications
You must be signed in to change notification settings - Fork 58
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
asdftool repr for Time objects #1686
Comments
Thanks for opening the issue. Would you give the source branch for #1687 a try? The output should be improved for
However I went with a hopefully general solution so it's possible (and likely) that other objects will also now display values (whatever is returned from |
That certainly did something! I'm seeing a little odd behavior though, which I don't think was expected. Running it on a Roman file I have did this:
So they're not rendering as (Time) anymore, but as (TaggedString). And the meta.exposure section now shows as (TaggedDict). You can see it also seems to have dropped the descriptions from the schema in the rendered tree. And for some reason, start_time is showing as a dictionary while mid_time and end_time are not? But they're all astropy.time.Time objects. Comparison to the same section with the v2.15.1 of asdf:
|
Thanks for testing this. Was the first example run with a installed version of |
Ah, okay, you're right. Good catch! Okay, looks good to me in that case! Thanks, Brett! |
Excellent! Thanks again for testing it and please do let me know if you notice anything else. I do see the |
Using
asdftool info <file>
on an ASDF file containing astropy.time.Time objects produces the following (excerpted) output:Is it possible to add some kind of repr to this to display the time (maybe in ISOT or some other format?).
The text was updated successfully, but these errors were encountered: