Skip to content

Commit eeedccc

Browse files
committed
hack
1 parent db37fed commit eeedccc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/zarr/core/codec_pipeline.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,11 @@ async def _read_key(
426426
# If the result is not useful, we leave it for the garbage collector.
427427
# We optimize this operation for the case that the GPU
428428
if not hasattr(chunk_array._data, '__cuda_array_interface__'):
429-
chunk_array = NDBuffer(np.asarray(chunk_array._data))
429+
# I'm not sure why this implementation doesn't work
430+
# it seems like something is getting missed by me
431+
# chunk_array = NDBuffer(np.asarray(chunk_array._data))
432+
# This line here just feels more dirty
433+
chunk_array._data = np.asarray(chunk_array._data)
430434

431435
if chunk_array.all_equal(
432436
fill_value_or_default(chunk_spec)

0 commit comments

Comments
 (0)