Skip to content
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

Support serialization of Spectrum1D and SpectrumList to ASDF #443

Merged
merged 11 commits into from
Feb 22, 2019

Conversation

drdavella
Copy link
Contributor

This PR adds ASDF tag implementations and schemas in order to enable Spectrum1D and SpectrumList objects to be serialized to ASDF files.

It turns out that the asdf package is already an indirect package of specutils since it's a dependency of gwcs. However, I added a bit of logic here to ensure that the test suite continues to pass even if asdf is not installed. Maybe the correct solution is simply to add asdf as an explicit dependency now, though?

This resolves #442.

specutils/io/asdf/types.py Outdated Show resolved Hide resolved
@drdavella

This comment has been minimized.

@nmearl
Copy link
Contributor

nmearl commented Feb 6, 2019

Looks good.

@drdavella drdavella force-pushed the asdf-support branch 2 times, most recently from 9ab6a16 to 815b9b1 Compare February 11, 2019 19:40
@nmearl nmearl merged commit 2ba2b7c into astropy:master Feb 22, 2019
@drdavella drdavella deleted the asdf-support branch February 25, 2019 14:33
SaOgaz pushed a commit that referenced this pull request Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ASDF tags and schemas for Spectrum1D and SpectrumList
2 participants