Skip to content

Commit 16b675c

Browse files
removing inversion test since it was inaccurate
1 parent a8ec6ee commit 16b675c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/test_transforms.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,6 @@ def test_normalize_img_with_lowhigh_and_invert(img_3d):
5151
)
5252
assert img_norm_channelwise.min() >= 0 and img_norm_channelwise.max() <= 1
5353

54-
img_norm_channelwise_inverted = normalize_img(
55-
img_3d,
56-
lowhigh=(
57-
(img_3d[..., 0].min(), img_3d[..., 0].max()),
58-
(img_3d[..., 1].min(), img_3d[..., 1].max()),
59-
),
60-
invert=True,
61-
)
62-
np.testing.assert_allclose(
63-
img_norm_channelwise, 1 - img_norm_channelwise_inverted, rtol=1e-3
64-
)
65-
6654

6755
def test_normalize_img_exceptions(img_3d):
6856
img_2D = img_3d[0, ..., 0]

0 commit comments

Comments
 (0)