Skip to content

Commit

Permalink
Exploit hard-coded sync sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 authored Jan 10, 2025
1 parent cdc1b2a commit e45a9f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,7 @@ def _compute_metrics(self, sorting_analyzer, unit_ids=None, verbose=False, metri
# we have one issue where the name of the columns for synchrony are named based on
# what the user has input as arguments so we need a way to handle this separately
# everything else should be handled with the column name.
if "sync" in column:
metrics[column] = metrics[column].astype(column_name_to_column_dtype["sync"])
else:
metrics[column] = metrics[column].astype(column_name_to_column_dtype[column])
metrics[column] = metrics[column].astype(column_name_to_column_dtype[column])

return metrics

Expand Down
6 changes: 4 additions & 2 deletions src/spikeinterface/qualitymetrics/quality_metric_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"sync_spike_2",
"sync_spike_4",
"sync_spike_8",
], # we probably shouldn't hard code this. This is determined by the arguments in the function...
],
"firing_range": ["firing_range"],
"drift": ["drift_ptp", "drift_std", "drift_mad"],
"sd_ratio": ["sd_ratio"],
Expand Down Expand Up @@ -99,7 +99,9 @@
"amplitude_median": float,
"amplitude_cv_median": float,
"amplitude_cv_range": float,
"sync": float,
"sync_spike_2": float,
"sync_spike_4": float,
"sync_spike_8": float,
"firing_range": float,
"drift_ptp": float,
"drift_std": float,
Expand Down

0 comments on commit e45a9f8

Please sign in to comment.