Skip to content

Commit

Permalink
Merge pull request #44 from braingram/fix_tags
Browse files Browse the repository at this point in the history
fix tags to use asdf-format instead of example project
  • Loading branch information
braingram authored Jun 22, 2024
2 parents 4015d49 + 298e9e0 commit 7db9d2f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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]
2 changes: 1 addition & 1 deletion asdf_zarr/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions asdf_zarr/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()]


Expand Down
4 changes: 2 additions & 2 deletions notebooks/ASDF_array_storage_intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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: !<asdf://stsci.edu/example-project/tags/zarr-1.0.0>\n",
"arr: !<asdf://asdf-format.org/zarr/tags/zarr-1.0.0>\n",
" .zarray:\n",
" chunks: [1, 512, 1024]\n",
" compressor: null\n",
Expand Down

0 comments on commit 7db9d2f

Please sign in to comment.