From 7984f440e659156392522afdfc6effbe57dd00b3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 13:39:41 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/unittests/segmentation/test_dice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unittests/segmentation/test_dice.py b/tests/unittests/segmentation/test_dice.py index b1f3a3e6c8d..a3df3105b3e 100644 --- a/tests/unittests/segmentation/test_dice.py +++ b/tests/unittests/segmentation/test_dice.py @@ -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])