Skip to content

Commit bb54c57

Browse files
committed
Revert "reroll modified tests"
This reverts commit 1fc0a5b.
1 parent 2430ac8 commit bb54c57

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

MONAI

Lines changed: 0 additions & 1 deletion
This file was deleted.

monai_src

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/transforms/test_gibbs_noise.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
import unittest
1515
from copy import deepcopy
16+
from itertools import product
1617

1718
import numpy as np
1819
from parameterized import parameterized
@@ -21,13 +22,13 @@
2122
from monai.transforms import GibbsNoise
2223
from monai.utils.misc import set_determinism
2324
from monai.utils.module import optional_import
24-
from tests.test_utils import TEST_NDARRAYS, assert_allclose, dict_product
25+
from tests.test_utils import TEST_NDARRAYS, assert_allclose
2526

2627
_, has_torch_fft = optional_import("torch.fft", name="fftshift")
2728

2829
shapes = ((128, 64), (64, 48, 80))
2930
input_types = TEST_NDARRAYS if has_torch_fft else [np.array]
30-
TEST_CASES = [[p_dict["shape"], p_dict["input_type"]] for p_dict in dict_product(shape=shapes, input_type=input_types)]
31+
TEST_CASES = list(map(list, product(shape=shapes, input_type=input_types)))
3132

3233

3334
class TestGibbsNoise(unittest.TestCase):

0 commit comments

Comments
 (0)