Skip to content

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

Description

@braingram

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions