Skip to content

Commit

Permalink
Stop using numpy.object, deprecated in 1.20 and later removed
Browse files Browse the repository at this point in the history
It was just an alias for the built-in int, so use that instead.
  • Loading branch information
musicinmybrain committed Dec 16, 2024
1 parent d18f600 commit 6bef820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion klusta/traces/tests/test_spikedetekt.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_relative_channels():


def test_split_spikes():
groups = np.zeros(10, dtype=np.int)
groups = np.zeros(10, dtype=int)
groups[1::2] = 1

idx = np.ones(10, dtype=np.bool)
Expand Down
2 changes: 1 addition & 1 deletion klusta/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _index_of(arr, lookup):
# values
lookup = np.asarray(lookup, dtype=np.int32)
m = (lookup.max() if len(lookup) else 0) + 1
tmp = np.zeros(m + 1, dtype=np.int)
tmp = np.zeros(m + 1, dtype=int)
# Ensure that -1 values are kept.
tmp[-1] = -1
if len(lookup):
Expand Down

0 comments on commit 6bef820

Please sign in to comment.