From 298e9e0cb68eb83b0ca6f0875791b4e9a9124337 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 28 May 2024 16:22:01 -0400 Subject: [PATCH] fix tags to use asdf-format instead of example project --- CHANGES.rst | 1 + asdf_zarr/converter.py | 2 +- asdf_zarr/extensions.py | 4 ++-- notebooks/ASDF_array_storage_intro.ipynb | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 5b9aee6..ccd3fc9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,3 +3,4 @@ - added changelog [#36] - pin zarr to < 3 until the 3.x API is stable [#43] +- fix tags to use ``asdf-format.org`` instead of ``example-project`` [#44] diff --git a/asdf_zarr/converter.py b/asdf_zarr/converter.py index 3235f78..a837ff2 100644 --- a/asdf_zarr/converter.py +++ b/asdf_zarr/converter.py @@ -11,7 +11,7 @@ class ZarrConverter(asdf.extension.Converter): - tags = ["asdf://stsci.edu/example-project/tags/zarr-*"] + tags = ["asdf://asdf-format.org/zarr/tags/zarr-*"] types = ["zarr.core.Array"] def to_yaml_tree(self, obj, tag, ctx): diff --git a/asdf_zarr/extensions.py b/asdf_zarr/extensions.py index c02539c..dde65b2 100644 --- a/asdf_zarr/extensions.py +++ b/asdf_zarr/extensions.py @@ -4,8 +4,8 @@ class ZarrExtension(asdf.extension.Extension): - extension_uri = "asdf://stsci.edu/example-project/tags/zarr-1.0.0" - tags = ["asdf://stsci.edu/example-project/tags/zarr-1.0.0"] + extension_uri = "asdf://asdf-format.org/zarr/tags/zarr-1.0.0" + tags = ["asdf://asdf-format.org/zarr/tags/zarr-1.0.0"] converters = [ZarrConverter()] diff --git a/notebooks/ASDF_array_storage_intro.ipynb b/notebooks/ASDF_array_storage_intro.ipynb index 7eddf14..d2408d7 100644 --- a/notebooks/ASDF_array_storage_intro.ipynb +++ b/notebooks/ASDF_array_storage_intro.ipynb @@ -927,9 +927,9 @@ " software: !core/software-1.0.0 {name: asdf, version: 3.0.0.dev307+gb0c9a50}\n", " - !core/extension_metadata-1.0.0\n", " extension_class: asdf_zarr.extensions.ZarrExtension\n", - " extension_uri: asdf://stsci.edu/example-project/tags/zarr-1.0.0\n", + " extension_uri: asdf://asdf-format.org/zarr/tags/zarr-1.0.0\n", " software: !core/software-1.0.0 {name: asdf-zarr, version: 0.0.1}\n", - "arr: !\n", + "arr: !\n", " .zarray:\n", " chunks: [1, 512, 1024]\n", " compressor: null\n",