Skip to content

Commit 32141a9

Browse files
shikharsgshikhar
authored andcommitted
np.copy not needed when accessing a subset of a chunk
1 parent f796ea7 commit 32141a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎zarr/core.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ def _chunk_getitem(self, chunk_coords, chunk_selection, out, out_selection,
16311631
if self._chunk_cache is not None:
16321632
self._chunk_cache[ckey] = np.copy(chunk)
16331633
else:
1634-
chunk = np.copy(cdata)
1634+
chunk = cdata
16351635

16361636
# select data from chunk
16371637
if fields:

0 commit comments

Comments
 (0)