Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 8, 2025
1 parent ab5070d commit 7984f44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unittests/segmentation/test_dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ def test_zero_division(zero_division, average):
},
}

assert torch.allclose(
score, res_dict[average][zero_division], atol=1e-4, equal_nan=True
), f"Expected {res_dict[average][zero_division]} but got {score}"
assert torch.allclose(score, res_dict[average][zero_division], atol=1e-4, equal_nan=True), (
f"Expected {res_dict[average][zero_division]} but got {score}"
)


@pytest.mark.parametrize("compute_groups", [True, False])
Expand Down

0 comments on commit 7984f44

Please sign in to comment.