Skip to content

Commit

Permalink
Merge pull request #3350 from Djoels/main
Browse files Browse the repository at this point in the history
Fix print_summary for reporting when not exhaustive_gt
  • Loading branch information
samuelgarcia authored Aug 29, 2024
2 parents 261d671 + 3dbba38 commit 161efc4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/spikeinterface/comparison/paircomparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,12 +456,12 @@ def print_summary(self, well_detected_score=None, redundant_score=None, overmerg
num_gt=len(self.unit1_ids),
num_tested=len(self.unit2_ids),
num_well_detected=self.count_well_detected_units(well_detected_score),
num_redundant=self.count_redundant_units(redundant_score),
num_overmerged=self.count_overmerged_units(overmerged_score),
)

if self.exhaustive_gt:
txt = txt + _template_summary_part2
d["num_redundant"] = self.count_redundant_units(redundant_score)
d["num_overmerged"] = self.count_overmerged_units(overmerged_score)
d["num_false_positive_units"] = self.count_false_positive_units()
d["num_bad"] = self.count_bad_units()

Expand Down Expand Up @@ -676,11 +676,11 @@ def count_units_categories(
GT num_units: {num_gt}
TESTED num_units: {num_tested}
num_well_detected: {num_well_detected}
num_redundant: {num_redundant}
num_overmerged: {num_overmerged}
"""

_template_summary_part2 = """num_false_positive_units {num_false_positive_units}
_template_summary_part2 = """num_redundant: {num_redundant}
num_overmerged: {num_overmerged}
num_false_positive_units {num_false_positive_units}
num_bad: {num_bad}
"""

Expand Down

0 comments on commit 161efc4

Please sign in to comment.