Skip to content

Commit 4faf243

Browse files
authored
Make sure default automerge params reflect their type (#4483)
1 parent 7882450 commit 4faf243

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/spikeinterface/curation/auto_merge.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@
6969

7070
_default_step_params = {
7171
"num_spikes": {"min_spikes": 100},
72-
"snr": {"min_snr": 2},
72+
"snr": {"min_snr": 2.0},
7373
"remove_contaminated": {"contamination_thresh": 0.2, "refractory_period_ms": 1.0, "censored_period_ms": 0.3},
74-
"unit_locations": {"max_distance_um": 150},
74+
"unit_locations": {"max_distance_um": 150.0},
7575
"correlogram": {
7676
"corr_diff_thresh": 0.16,
7777
"censor_correlograms_ms": 0.15,
7878
"sigma_smooth_ms": 0.6,
7979
"adaptative_window_thresh": 0.5,
8080
},
8181
"template_similarity": {"similarity_method": "l1", "template_diff_thresh": 0.25},
82-
"presence_distance": {"presence_distance_thresh": 100},
82+
"presence_distance": {"presence_distance_thresh": 100.0},
8383
"knn": {"k_nn": 10},
8484
"cross_contamination": {
8585
"cc_thresh": 0.1,
@@ -88,7 +88,7 @@
8888
"censored_period_ms": 0.3,
8989
},
9090
"quality_score": {"firing_contamination_balance": 1.5, "refractory_period_ms": 1.0, "censored_period_ms": 0.3},
91-
"slay_score": {"k1": 0.25, "k2": 1, "slay_threshold": 0.5},
91+
"slay_score": {"k1": 0.25, "k2": 1.0, "slay_threshold": 0.5},
9292
}
9393

9494

@@ -534,7 +534,7 @@ def get_potential_auto_merge(
534534
corr_diff_thresh: float = 0.16,
535535
template_diff_thresh: float = 0.25,
536536
contamination_thresh: float = 0.2,
537-
presence_distance_thresh: float = 100,
537+
presence_distance_thresh: float = 100.0,
538538
p_value: float = 0.2,
539539
cc_thresh: float = 0.1,
540540
censored_period_ms: float = 0.3,

0 commit comments

Comments
 (0)