Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 55f94ae

Browse files
author
Jaquier Aurélien Tristan
committed
improve syntax in extra_features_utils.py
1 parent 0b1fffc commit 55f94ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bluepyopt/ephys/extra_features_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def recovery_slope(waveforms, sampling_frequency, window):
341341
time = np.arange(0, waveforms.shape[1]) * (1 / sampling_frequency) # in s
342342

343343
for i in range(waveforms.shape[0]):
344-
if peak_idx[i] == 0 or peak_idx[i] == waveforms.shape[1]:
344+
if peak_idx[i] in [0, waveforms.shape[1]]:
345345
continue
346346
max_idx = int(peak_idx[i] + ((window / 1000) * sampling_frequency))
347347
max_idx = np.min([max_idx, waveforms.shape[1]])

0 commit comments

Comments
 (0)