Skip to content

Commit

Permalink
fix sw num_peaks estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmerk committed Jan 31, 2025
1 parent 311cf69 commit 47a3be8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py_neuromodulation/features/sharpwaves.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ def calc_feature(self, data: np.ndarray) -> dict:

# the key_name stays, since the estimator function stays between peaks and troughs
for key_name, estimator in self.estimator_key_map.items():
if "num_peaks" in key_name:
continue
feature_results[key_name] = estimator(
[
list(dict_ch_features[key_name].values())[0],
Expand Down

0 comments on commit 47a3be8

Please sign in to comment.