astropy/asdf-astropy

different output compared to astropy.io.misc.asdf

braingram opened this issue · 1 comments

As discussed in this PR spacetelescope/stdatamodels#104 astropy.io.misc.asdf and asdf-astropy will output different yaml for certain time formats.

It appears that asdf-astropy will always output an object even when a string is read (as seen in this gist: https://gist.github.com/braingram/b369a6326e299088fb98bcef38a01c7d

I don't necessarily see this as an issue as the object format is more descriptive and less ambiguous than the string formatted time (at the expense of slightly more yaml). It may however create issues with downstream packages.

If this is intended behavior, is this documented?

We should re add the return for the strict string mode under the "correct" circumstances.