We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 066c378 commit 65e1848Copy full SHA for 65e1848
src/spikeinterface/metrics/quality/tests/test_quality_metric_calculator.py
@@ -168,7 +168,8 @@ def test_empty_units(sorting_analyzer_simple):
168
for col in metrics_empty.columns:
169
all_nans = np.all(isnull(metrics_empty.loc[empty_unit_ids, col].values))
170
all_zeros = np.all(metrics_empty.loc[empty_unit_ids, col].values == 0)
171
- assert all_nans or all_zeros
+ all_neg_ones = np.all(metrics_empty.loc[empty_unit_ids, col].values == -1)
172
+ assert all_nans or all_zeros or all_neg_ones, f"Column {col} failed the empty unit test"
173
174
175
if __name__ == "__main__":
0 commit comments