Skip to content

Commit

Permalink
Fix 1080 (LorenFrankLab#1099)
Browse files Browse the repository at this point in the history
* Fix 1080

* Revert debug print
  • Loading branch information
CBroz1 authored Sep 10, 2024
1 parent b9e363f commit 991fc76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- Spike Sorting

- Fix bug in `get_group_by_shank` #1096
- Fix bug in `_compute_metric` #1099

## [0.5.3] (August 27, 2024)

Expand Down
2 changes: 1 addition & 1 deletion src/spyglass/spikesorting/v0/spikesorting_curation.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def _compute_metric(self, waveform_extractor, metric_name, **metric_params):

peak_sign_metrics = ["snr", "peak_offset", "peak_channel"]
if metric_name == "isi_violation":
metric = metric_func(waveform_extractor, **metric_params)
return metric_func(waveform_extractor, **metric_params)
elif metric_name in peak_sign_metrics:
if "peak_sign" not in metric_params:
raise Exception(
Expand Down

0 comments on commit 991fc76

Please sign in to comment.