Skip to content

Commit

Permalink
[FIX] fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzhenqi77 committed Nov 25, 2024
1 parent c533b0e commit 49ef4ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion netneurotools/spatial/tests/test_spatialstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def test_local_morans_i(generate_test_data):
annot_1, _, weight, expected = generate_test_data
assert np.allclose(local_morans_i(annot_1, weight), expected)


@pytest.mark.parametrize(
"generate_test_data",
[
Expand All @@ -90,6 +91,7 @@ def test_gearys_c(generate_test_data):
assert np.isclose(gearys_c(annot_1, weight, use_numba=False), expected)
assert np.isclose(gearys_c(annot_1, weight, use_numba=True), expected)


@pytest.mark.parametrize(
"generate_test_data",
[
Expand All @@ -103,6 +105,7 @@ def test_local_gearys_c(generate_test_data):
annot_1, _, weight, expected = generate_test_data
assert np.allclose(local_gearys_c(annot_1, weight), expected)


@pytest.mark.parametrize(
"generate_test_data",
[
Expand All @@ -117,6 +120,7 @@ def test_lees_i(generate_test_data):
assert np.isclose(lees_i(annot_1, annot_2, weight, use_numba=False), expected)
assert np.isclose(lees_i(annot_1, annot_2, weight, use_numba=True), expected)


@pytest.mark.parametrize(
"generate_test_data",
[
Expand All @@ -129,4 +133,3 @@ def test_local_lees_i(generate_test_data):
"""Test local Lee's I calculation."""
annot_1, annot_2, weight, expected = generate_test_data
assert np.allclose(local_lees_i(annot_1, annot_2, weight), expected)

0 comments on commit 49ef4ef

Please sign in to comment.