Skip to content

Commit ef97cc3

Browse files
committed
Cosmetic improvements
1 parent 4af50cd commit ef97cc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/blosc2/blosc2_ext.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2999,9 +2999,9 @@ def squeeze(arr1: NDArray, axis_mask: list[bool]) -> blosc2.NDArray:
29992999
mask_[i] = axis_mask[i]
30003000
_check_rc(b2nd_squeeze_index(arr1.array, &view, mask_), "Error while squeezing array")
30013001

3002-
#this squeezes even if not asked for by mask - may have to use in future though
3003-
#if arr1.array.shape[0] == 1 and arr1.ndim == 1:
3004-
# arr1.array.ndim = 0
3002+
# this squeezes even if not asked for by mask - may have to use in future though
3003+
# if arr1.array.shape[0] == 1 and arr1.ndim == 1:
3004+
# arr1.array.ndim = 0
30053005

30063006
# create view with reference to self to hold onto
30073007
new_base = arr1 if arr1.base is None else arr1.base

0 commit comments

Comments
 (0)