Skip to content

feat/v3 scale offset cast#3774

Draft
d-v-b wants to merge 2 commits intozarr-developers:mainfrom
d-v-b:feat/v3-scale-offset-cast
Draft

feat/v3 scale offset cast#3774
d-v-b wants to merge 2 commits intozarr-developers:mainfrom
d-v-b:feat/v3-scale-offset-cast

Conversation

@d-v-b
Copy link
Contributor

@d-v-b d-v-b commented Mar 13, 2026

This PR adds scale_offset and cast_value codecs. Used together, these codecs replace the fixedscaleoffset codec defined in numcodecs.

closes #3772

as an experiment, I'm including some developer notes I had claude write in the commit history. We can remove them before merging if we don't want that kind of thing sticking around.

@d-v-b
Copy link
Contributor Author

d-v-b commented Mar 13, 2026

cc @emmaualemalthot

raise ValueError(f"Unknown rounding mode: {mode}")


def _cast_array(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this implementation is inefficient and will probably remain so as long as we are using python for this.

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.

support scale_offset and cast_value codecs

1 participant