Skip to content

chore: Refactor codecs#74

Merged
maxrjones merged 3 commits into
mainfrom
codecs-refactor
Feb 25, 2026
Merged

chore: Refactor codecs#74
maxrjones merged 3 commits into
mainfrom
codecs-refactor

Conversation

@maxrjones
Copy link
Copy Markdown
Member

I previously emulated a bad design choice from numcodecs, this PR fixes that mistake by following the approach proposed in zarr-developers/zarr-python#3332:

  • add to_json(zarr_format) / from_json(data) API alongside existing to_dict / from_dict
  • refactor _ImageCodecsCodec to use explicit class variables
  • refactor for eager codec initializationr.

These codecs really shouldn't be in virtual-tiff at all, but this PR is a step in the right direction

@maxrjones
Copy link
Copy Markdown
Member Author

@d-v-b would you be willing to provide feedback on this PR?

@maxrjones maxrjones merged commit f304838 into main Feb 25, 2026
9 checks passed
@maxrjones maxrjones deleted the codecs-refactor branch February 25, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant