-
-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add codec pipeline strategy #2824
base: main
Are you sure you want to change the base?
Add codec pipeline strategy #2824
Conversation
7cc1bc2
to
68ad945
Compare
zarr_codecs = st.one_of( | ||
st.builds(zcodecs.ZstdCodec), | ||
st.builds( | ||
zcodecs.BloscCodec, | ||
shuffle=st.builds( | ||
zcodecs.BloscShuffle.from_int, num=st.integers(min_value=0, max_value=2) | ||
), | ||
), | ||
st.builds(zcodecs.GzipCodec), | ||
st.builds(zcodecs.Crc32cCodec), | ||
) | ||
num_codecs_v2 = st.one_of( | ||
st.builds(numcodecs.Zlib), | ||
st.builds(numcodecs.LZMA), | ||
st.builds(numcodecs.Zstd), | ||
st.builds(numcodecs.Zlib), | ||
) | ||
num_codecs_v3 = st.one_of( | ||
st.builds(ncodecs.Blosc), | ||
st.builds(ncodecs.LZMA), | ||
# st.builds(ncodecs.PCodec), | ||
# st.builds(ncodecs.ZFPY), | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This search space is quite large. How can we be strategic here?
I think we should test the codec pipeline separately with many different array types. For the arrays
strategy, we could restrict ourselves to a much more limited choice (e.g. choose one among [a codec from numcodecs, a codec from zarr codecs, or None])
I could use input on whether we can generate
filters
andcompressors
independently of each other or whether they must be consistent with each other. Currently, I am assuming the latter and thecodecs
strategy creates bothfilters
andcompressors
TODO:
docs/user-guide/*.rst
changes/