You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If someone was already using astropy.io.misc.asdf, what do they need to do to use this new package? Even if it is a one-line import change, this should be documented.
There is no change needed at all. The interface with asdf used by asdf-astropy are given preference over the one used by astropy.io.misc.asdf (which will be eliminated with ASDF 3.0). Simply installing asdf-astropy is all one needs to do in order to use asdf-astropy to serialize the supported astropy objects usingasdf.
Indeed, unless users are writing their own asdf extensions, they should never be importing astropy.io.misc.asdf or asdf_astropy. In the case that they are, we give clear instructions on how to create asdf extensions, to contribute to asdf-astropyhere, or in general here in the general asdf documentation.
Activity
WilliamJamieson commentedon May 19, 2022
There is no change needed at all. The interface with
asdfused byasdf-astropyare given preference over the one used byastropy.io.misc.asdf(which will be eliminated with ASDF 3.0). Simply installingasdf-astropyis all one needs to do in order to useasdf-astropyto serialize the supportedastropyobjects usingasdf.Indeed, unless users are writing their own
asdfextensions, they should never be importingastropy.io.misc.asdforasdf_astropy. In the case that they are, we give clear instructions on how to createasdfextensions, to contribute toasdf-astropyhere, or in general here in the generalasdfdocumentation.pllim commentedon May 19, 2022
Maybe just re-iterate what you said above in the documentation under a section about
astropy.io.misc.asdf?