diff --git a/dkist/io/asdf/converters/dataset.py b/dkist/io/asdf/converters/dataset.py index b2f2049be..3167c1ffd 100644 --- a/dkist/io/asdf/converters/dataset.py +++ b/dkist/io/asdf/converters/dataset.py @@ -3,6 +3,7 @@ class DatasetConverter(Converter): tags = [ + "asdf://dkist.nso.edu/tags/dataset-1.2.0", "asdf://dkist.nso.edu/tags/dataset-1.1.0", "asdf://dkist.nso.edu/tags/dataset-1.0.0", "tag:dkist.nso.edu:dkist/dataset-0.3.0", @@ -29,7 +30,8 @@ def from_yaml_tree(self, node, tag, ctx): mask = node.get("mask") # If we have a tag older than 1.2.0 then we are going to see if we can - # find a stokes table + # find a stokes table, and if we do then we are going to change it to be + # compatible with gWCS 0.19 if tag_version[0] == 0 or (tag_version[0] == 1 and tag_version[1] < 2): # Put imports here to reduce import time on entry point load import numpy as np diff --git a/dkist/io/asdf/entry_points.py b/dkist/io/asdf/entry_points.py index 50c316a5d..f4eb87ca8 100644 --- a/dkist/io/asdf/entry_points.py +++ b/dkist/io/asdf/entry_points.py @@ -39,6 +39,8 @@ def get_extensions(): dkist_converters = [FileManagerConverter(), DatasetConverter(), TiledDatasetConverter()] wcs_converters = [VaryingCelestialConverter(), CoupledCompoundConverter(), RavelConverter(), AsymmetricMappingConverter()] return [ + ManifestExtension.from_uri("asdf://dkist.nso.edu/manifests/dkist-1.2.0", + converters=dkist_converters), ManifestExtension.from_uri("asdf://dkist.nso.edu/manifests/dkist-1.1.0", converters=dkist_converters), ManifestExtension.from_uri("asdf://dkist.nso.edu/manifests/dkist-1.0.0", diff --git a/dkist/io/asdf/resources/manifests/dkist-1.2.0.yaml b/dkist/io/asdf/resources/manifests/dkist-1.2.0.yaml new file mode 100644 index 000000000..d8ca36405 --- /dev/null +++ b/dkist/io/asdf/resources/manifests/dkist-1.2.0.yaml @@ -0,0 +1,14 @@ +%YAML 1.1 +--- +id: asdf://dkist.nso.edu/dkist/manifests/dkist-1.2.0 +extension_uri: asdf://dkist.nso.edu/dkist/extensions/dkist-1.0.0 +title: DKIST extension +description: ASDF schemas and tags for DKIST classes. + +tags: + - schema_uri: "asdf://dkist.nso.edu/schemas/file_manager-1.0.0" + tag_uri: "asdf://dkist.nso.edu/tags/file_manager-1.0.0" + - schema_uri: "asdf://dkist.nso.edu/schemas/dataset-1.2.0" + tag_uri: "asdf://dkist.nso.edu/tags/dataset-1.2.0" + - schema_uri: "asdf://dkist.nso.edu/schemas/tiled_dataset-1.0.0" + tag_uri: "asdf://dkist.nso.edu/tags/tiled_dataset-1.0.0"