Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions numcodecs/delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ def encode(self, buf):
enc[0] = arr[0]

# compute differences
# using np.subtract for in-place operations
if arr.dtype == bool:
np.not_equal(arr[1:], arr[:-1], out=enc[1:])
else:
np.subtract(arr[1:], arr[:-1], out=enc[1:])

enc[1:] = np.diff(arr)
return enc

def decode(self, buf, out=None):
Expand Down
Loading