Skip to content

DOC: Conversion guide #74

Closed
Closed

Description

@pllim

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.

Activity

  1. WilliamJamieson commented on May 19, 2022

    @WilliamJamieson
    Contributor

    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-astropy here, or in general here in the general asdf documentation.

  2. pllim commented on May 19, 2022

    @pllim
    MemberAuthor

    Maybe just re-iterate what you said above in the documentation under a section about astropy.io.misc.asdf?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions