We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
0
1 parent b2cccc1 commit cf6fde0Copy full SHA for cf6fde0
numcodecs/delta.py
@@ -65,9 +65,9 @@ def encode(self, buf):
65
# compute differences
66
# using np.subtract for in-place operations
67
if arr.dtype == bool:
68
- np.not_equal(arr[1:], arr[0:-1], out=enc[1:])
+ np.not_equal(arr[1:], arr[:-1], out=enc[1:])
69
else:
70
- np.subtract(arr[1:], arr[0:-1], out=enc[1:])
+ np.subtract(arr[1:], arr[:-1], out=enc[1:])
71
72
return enc
73
0 commit comments