Skip to content

Commit cf6fde0

Browse files
committed
Drop extraneous 0s
1 parent b2cccc1 commit cf6fde0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numcodecs/delta.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ def encode(self, buf):
6565
# compute differences
6666
# using np.subtract for in-place operations
6767
if arr.dtype == bool:
68-
np.not_equal(arr[1:], arr[0:-1], out=enc[1:])
68+
np.not_equal(arr[1:], arr[:-1], out=enc[1:])
6969
else:
70-
np.subtract(arr[1:], arr[0:-1], out=enc[1:])
70+
np.subtract(arr[1:], arr[:-1], out=enc[1:])
7171

7272
return enc
7373

0 commit comments

Comments
 (0)