Skip to content

Commit dca8e6a

Browse files
committed
fix tests to match new args
1 parent d091a1b commit dca8e6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/spikeinterface/curation/tests/test_model_based_curation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ def test_model_based_classification_get_metrics_for_classification(
9999
def test_model_based_classification_export_to_phy(sorting_analyzer_for_curation, model):
100100
# Test the _export_to_phy() method of ModelBasedClassification
101101
model_based_classification = ModelBasedClassification(sorting_analyzer_for_curation, model[0])
102-
classified_units = {0: (1, 0.5), 1: (0, 0.5), 2: (1, 0.5), 3: (0, 0.5), 4: (1, 0.5)}
102+
import pandas as pd
103+
104+
classified_units = pd.DataFrame.from_dict({0: (1, 0.5), 1: (0, 0.5), 2: (1, 0.5), 3: (0, 0.5), 4: (1, 0.5)})
103105
# Function should fail here
104106
with pytest.raises(ValueError):
105107
model_based_classification._export_to_phy(classified_units)

0 commit comments

Comments
 (0)