Skip to content

Commit 6170f20

Browse files
committed
fix numpy.int error
np.int was a deprecated alias for the builtin int, so the appearences of 'np.int' were changed by 'int'
1 parent 164d524 commit 6170f20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ebosc/BOSC.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def BOSC_detect(b,powthresh,durthresh,Fsample):
7979
# Step 1: power threshold
8080
x=b>powthresh
8181
# we have to turn the boolean to numeric
82-
x = np.array(list(map(np.int, x)))
82+
x = np.array(list(map(int, x)))
8383
# show the +1 and -1 edges
8484
dx=np.diff(x)
8585
if np.size(np.where(dx==1))!=0:
@@ -132,5 +132,5 @@ def BOSC_detect(b,powthresh,durthresh,Fsample):
132132
detected[np.arange(H[0][h], H[1][h],1)]=1
133133

134134
# ensure that outputs are integer
135-
detected = np.array(list(map(np.int, detected)))
135+
detected = np.array(list(map(int, detected)))
136136
return detected

0 commit comments

Comments
 (0)