Skip to content

Commit ddad903

Browse files
author
Julien Verplanken
committed
fix print_summary for reporting when not exhaustive_gt
1 parent 007b6ef commit ddad903

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/spikeinterface/comparison/paircomparisons.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -455,13 +455,13 @@ def print_summary(self, well_detected_score=None, redundant_score=None, overmerg
455455
d = dict(
456456
num_gt=len(self.unit1_ids),
457457
num_tested=len(self.unit2_ids),
458-
num_well_detected=self.count_well_detected_units(well_detected_score),
459-
num_redundant=self.count_redundant_units(redundant_score),
460-
num_overmerged=self.count_overmerged_units(overmerged_score),
458+
num_well_detected=self.count_well_detected_units(well_detected_score)
461459
)
462460

463461
if self.exhaustive_gt:
464462
txt = txt + _template_summary_part2
463+
d["num_redundant"] = self.count_redundant_units(redundant_score)
464+
d["num_overmerged"] = self.count_overmerged_units(overmerged_score)
465465
d["num_false_positive_units"] = self.count_false_positive_units()
466466
d["num_bad"] = self.count_bad_units()
467467

@@ -676,11 +676,11 @@ def count_units_categories(
676676
GT num_units: {num_gt}
677677
TESTED num_units: {num_tested}
678678
num_well_detected: {num_well_detected}
679-
num_redundant: {num_redundant}
680-
num_overmerged: {num_overmerged}
681679
"""
682680

683-
_template_summary_part2 = """num_false_positive_units {num_false_positive_units}
681+
_template_summary_part2 = """num_redundant: {num_redundant}
682+
num_overmerged: {num_overmerged}
683+
num_false_positive_units {num_false_positive_units}
684684
num_bad: {num_bad}
685685
"""
686686

0 commit comments

Comments
 (0)