Skip to content

Allow top-level metadata type to be a union of null, object. #659

Closed

Description

@benjeffery

As discussed in tskit-dev/pyslim#82 empty metadata is a common occurrence when a tool is adding to an existing tree sequence. To add metadata a tool adds a schema which means default "na" values must be added to all existing rows.
We can change the metaschema to allow a union of null,object at the top-level of the schema to support a subset of rows having empty metadata. The encoders and decoders will special-case this usage.

Activity

  1. added
    enhancement
    on Jun 1, 2020
  2. added this to the Python 0.3.0 milestone on Jun 1, 2020
  3. self-assigned this
    on Jun 1, 2020
  4. added a commit that references this issue on Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions