Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hfr1tz3 committed Dec 22, 2024
1 parent 22fb7b5 commit 4921a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def f(t):
best_match_spans = np.zeros((ts.num_nodes,))
time_discrepancies = np.zeros((ts.num_nodes,))
for i, j in enumerate(best_match):
if ties is 'average':
if ties == 'average':
best_match_spans[i] = share_spans[i, j]/np.bincount(best_match)[j]
if ties is None:
best_match_spans[i] = shared_spans[i, j]
Expand Down

0 comments on commit 4921a5d

Please sign in to comment.