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

Commit 8d16297

Browse files
committed
small_update
1 parent 57e6007 commit 8d16297

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bluepyopt/ephys/efeatures.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,15 +426,15 @@ def calculate_feature(
426426
from .extra_features_utils import calculate_features
427427

428428
"""Calculate feature value"""
429+
peak_times = self._get_peak_times(
430+
responses, raise_warnings=raise_warnings
431+
)
429432
if peak_times is None:
430433
if return_waveforms:
431434
return None, None
432435
else:
433436
return None
434-
peak_times = self._get_peak_times(
435-
responses, raise_warnings=raise_warnings
436-
)
437-
437+
438438
if len(peak_times) > 1 and self.skip_first_spike:
439439
peak_times = peak_times[1:]
440440

0 commit comments

Comments
 (0)