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

Investigate options for saving tables with standard asdf table tag #209

Open
braingram opened this issue Oct 12, 2023 · 0 comments
Open

Comments

@braingram
Copy link
Contributor

asdf-astropy currently does not implement an asdf core table writer:

class AsdfTableConverter(Converter):
tags = ("tag:stsci.edu:asdf/core/table-*",)
types = ()
def to_yaml_tree(self, obj, tag, ctx):
msg = "astropy does not support writing astropy.table.Table with the ASDF table-1.0.0 tag"
raise NotImplementedError(msg)
def from_yaml_tree(self, node, tag, ctx):
from astropy.table import Table
return Table(node["columns"], meta=node.get("meta"))

Investigate options for triggering asdf-astropy to write a restricted table that is compliant with the core table schema to aid in producing files that might be more easily supported by non-python implementations of asdf.

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

No branches or pull requests

1 participant