Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
vferat committed Sep 13, 2023
1 parent 8b491e9 commit f34471a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycrostates/segmentation/tests/test_transitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ def test_check_labels_n_clusters():
def test_deprecated_ignore_self(caplog):
labels = np.random.randint(0, 5, size=100)
log = "The 'ignore_self' parameter is deprecated"

caplog.clear()
M = compute_transition_matrix(labels, 5, ignore_self=True)
assert log in caplog.text
M_ = compute_transition_matrix(labels, 5, ignore_repetitions=True)
assert_allclose(M, M_)

caplog.clear()
M = compute_expected_transition_matrix(labels, 5, ignore_self=True)
assert log in caplog.text
Expand Down

0 comments on commit f34471a

Please sign in to comment.