Skip to content

Commit af32fe7

Browse files
Stop using numpy.int, deprecated in 1.20 and later removed
It was just an alias for the built-in int, so use that instead.
1 parent d18f600 commit af32fe7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

klusta/traces/tests/test_spikedetekt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_relative_channels():
4646

4747

4848
def test_split_spikes():
49-
groups = np.zeros(10, dtype=np.int)
49+
groups = np.zeros(10, dtype=int)
5050
groups[1::2] = 1
5151

5252
idx = np.ones(10, dtype=np.bool)

klusta/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _index_of(arr, lookup):
7575
# values
7676
lookup = np.asarray(lookup, dtype=np.int32)
7777
m = (lookup.max() if len(lookup) else 0) + 1
78-
tmp = np.zeros(m + 1, dtype=np.int)
78+
tmp = np.zeros(m + 1, dtype=int)
7979
# Ensure that -1 values are kept.
8080
tmp[-1] = -1
8181
if len(lookup):

0 commit comments

Comments
 (0)