Skip to content

Commit 10f6c2c

Browse files
update np.int to int method given numpy's deprecation
for more info see: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
1 parent 559a149 commit 10f6c2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

heartpy/heartpy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ def process_segmentwise(hrdata, sample_rate, segment_width=120, segment_overlap=
458458
for i, ii in slice_indices:
459459
#pks = [x for x in peaklist if i <= x < ii]
460460
pks = peaklist[np.where((peaklist >= i) & (peaklist < ii))]
461-
pks_b = working_data['binary_peaklist'][np.int(np.where(peaklist == pks[0])[0]):
462-
np.int(np.where(peaklist == pks[-1])[-1]) + 1]
461+
pks_b = working_data['binary_peaklist'][int(np.where(peaklist == pks[0])[0]):
462+
int(np.where(peaklist == pks[-1])[-1]) + 1]
463463
rr_list = (np.diff(pks) / sample_rate) * 1000.0
464464
rr_list, rr_diff, rr_sqdiff = calc_rr_segment(rr_list, pks_b)
465465
_, tmp = calc_ts_measures(rr_list, rr_diff, rr_sqdiff)

0 commit comments

Comments
 (0)