Skip to content

Commit b6b90d1

Browse files
committed
Fix asarray to avoid weird view behaviour
1 parent a81215e commit b6b90d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/blosc2/ndarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4427,7 +4427,7 @@ def asarray(
44274427
if not isinstance(array, NDArray):
44284428
raise ValueError("Must always do a copy for asarray unless NDArray provided.")
44294429
# TODO: make a direct view possible
4430-
return blosc2.expand_dims(array, axis=0).squeeze(axis=0) # way to get a view
4430+
return array
44314431

44324432
return ndarr
44334433

0 commit comments

Comments
 (0)