Skip to content

Commit 689db10

Browse files
authored
Fix chunking where indexing an array returns an empty array (#739)
1 parent 03455f3 commit 689db10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cubed/core/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ def merged_chunk_len_for_indexer(ia, c):
591591
# empty output case
592592
from cubed.array_api.creation_functions import empty
593593

594-
out = empty(shape, dtype=x.dtype, spec=x.spec)
594+
out = empty(shape, dtype=x.dtype, chunks=x.chunksize, spec=x.spec)
595595
else:
596596
dtype = x.dtype
597597
chunks = tuple(

0 commit comments

Comments
 (0)