Skip to content

Commit 215a6bd

Browse files
committed
fix tests
1 parent aa8384c commit 215a6bd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/spikeinterface/comparison/basecomparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _do_graph(self):
137137
for comp_name, comp in self.comparisons.items():
138138
for u1 in comp.hungarian_match_12.index.values:
139139
u2 = comp.hungarian_match_12[u1]
140-
if u2 != -1:
140+
if u2 != -1 and u2 != "":
141141
name_1, name_2 = comp_name
142142
node1 = name_1, u1
143143
node2 = name_2, u2

src/spikeinterface/comparison/tests/test_templatecomparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_compare_multiple_templates():
4545

4646
for u1 in temp_cmp.hungarian_match_12.index.values:
4747
u2 = temp_cmp.hungarian_match_12[u1]
48-
if u2 != -1:
48+
if u2 != -1 and u2 != "":
4949
assert u1 == u2
5050

5151
# multi-comparison

0 commit comments

Comments
 (0)