diff --git a/bluepyopt/ephys/efeatures.py b/bluepyopt/ephys/efeatures.py index 479ecb61..edfa56cf 100644 --- a/bluepyopt/ephys/efeatures.py +++ b/bluepyopt/ephys/efeatures.py @@ -434,7 +434,7 @@ def calculate_feature( return None, None else: return None - + if len(peak_times) > 1 and self.skip_first_spike: peak_times = peak_times[1:] @@ -448,6 +448,7 @@ def calculate_feature( return None, None else: return None + if np.std(np.diff(response["time"])) > 0.001 * np.mean( np.diff(response["time"]) ):