Uh oh!
There was an error while loading. Please reload this page.
Revert change to default write_empty_chunks. - #1001
Conversation
jeromekelleher
commented
Apr 4, 2022
Great to see this, thanks @vyasr! cc @benjeffery@tomwhite |
joshmoore
commented
Apr 4, 2022
I assume the general consensus is to get this out as an immediate 2.11.2? |
jni
commented
Apr 4, 2022
That's my understanding! |
jakirkham
commented
Apr 4, 2022
Thanks all! 😄 |
* Activate GHA for stable 2_11 branch * Revert change to default write_empty_chunks. (#1001) * Prepare 2.11.2 release Co-authored-by: Vyas Ramasubramani <vyas.ramasubramani@gmail.com>
joshmoore
commented
Apr 5, 2022
2.11.2 is released from the |
jakirkham
commented
Apr 5, 2022
Should we create a GitHub release for that tag as well? |
joshmoore
commented
Apr 6, 2022
Ah, apologies. I forgot that step. Yes, I'll do it now. |
jakirkham
commented
Apr 6, 2022
Not at all. Thanks for handling this Josh 🙏 |
tomwhite
commented
Apr 6, 2022
Thanks for releasing 2.11.2 @joshmoore. Unfortunately, it looks like it doesn't fully revert the change: >>>importzarr>>>zarr.__version__'2.11.2'>>>a=zarr.create((100, 100), chunks=(100, 50), dtype="i4", store="example.zarr")
>>>a[:] =0>>>importos>>>os.listdir("example.zarr")
['.zarray']Whereas with a previous version of Zarr (and the main branch): >>>importzarr>>>zarr.__version__'2.10.3'>>>a=zarr.create((100, 100), chunks=(100, 50), dtype="i4", store="example.zarr")
>>>a[:] =0>>>importos>>>os.listdir("example.zarr")
['.zarray', '0.0', '0.1']The problem is in Line 23 in 04519bd |
jakirkham
commented
Apr 6, 2022
@tomwhite would you be willing to send a PR? 🙂 |
tomwhite
commented
Apr 6, 2022
Opened #1005 |
vyasr
commented
Apr 12, 2022
Ah sorry I guessed I missed one, sorry about that. Thanks for the patch @tomwhite! |
This PR resolves#965 by changing the default of
write_empty_chunkstoTrue. I am not sure if we want to document the current limitations ofwrite_empty_chunks=False, or if we want to treat those as bugs that will be fixed eventually. In the future we may want to error if a user setswrite_empty_chunks=Truewith an unsupported data type, but that change should probably be made in a future PR that implements the solution described in #965 (comment) and #965 (comment)TODO: