We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e410173 commit 8f40aafCopy full SHA for 8f40aaf
src/zarr/core/codec_pipeline.py
@@ -315,7 +315,7 @@ def _merge_chunk_array(
315
# TODO: For the last chunk, we could have is_complete_chunk=True
316
# that is smaller than the chunk_spec.shape but this throws
317
# an error in the _decode_single
318
- return chunk_value
+ return chunk_value.copy() # make a writable copy
319
if existing_chunk_array is None:
320
chunk_array = chunk_spec.prototype.nd_buffer.create(
321
shape=chunk_spec.shape,
0 commit comments