Skip to content

Commit d0d720d

Browse files
monai-botwyli
andauthored
auto updates (#5709)
Signed-off-by: monai-bot <monai.miccai2019@gmail.com> this also fixes #5707 Signed-off-by: monai-bot <monai.miccai2019@gmail.com> Signed-off-by: Wenqi Li <wenqil@nvidia.com> Co-authored-by: Wenqi Li <wenqil@nvidia.com>
1 parent 7a38c3b commit d0d720d

6 files changed

Lines changed: 3 additions & 6 deletions

File tree

monai/handlers/checkpoint_saver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
Events, _ = optional_import("ignite.engine", IgniteInfo.OPT_IMPORT_VERSION, min_version, "Events")
2020

21-
2221
if TYPE_CHECKING:
2322
from ignite.engine import Engine
2423
from ignite.handlers import Checkpoint, DiskSaver

tests/test_convert_data_type.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
)
5757
)
5858

59-
6059
UNSUPPORTED_TYPES = {np.dtype("uint16"): torch.int32, np.dtype("uint32"): torch.int64, np.dtype("uint64"): torch.int64}
6160

6261

tests/test_hovernet_nuclear_type_post_processingd.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@
3030
image = (x - 10) ** 2 + (y - 10) ** 2 <= 5**2
3131
image = image[None, ...].astype("uint8")
3232

33-
3433
TEST_CASE_1 = [{}, [{"1": [10, 10]}, np.zeros_like(image), np.zeros_like(image)]]
3534

36-
3735
TEST_CASE = []
3836
for p in TEST_NDARRAYS:
3937
TEST_CASE.append([p, image] + TEST_CASE_1)

tests/test_safe_dtype_range.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
TESTS.append((in_type(np.array(256)), in_type(np.array(255)), np.uint8)) # type: ignore
3030
TESTS.append((in_type(np.array(-12)), in_type(np.array(0)), np.uint8)) # type: ignore
3131
for in_type in TEST_NDARRAYS_ALL:
32-
TESTS.append((in_type(np.array([[256, 255], [-12, 0]])), in_type(np.array([[255, 255], [0, 0]])), np.uint8)) # type: ignore
32+
TESTS.append((in_type(np.array([[256, 255], [-12, 0]])), in_type(np.array([[255, 255], [0, 0]])), np.uint8))
3333

3434
TESTS_LIST: List[Tuple] = []
3535
for in_type in TEST_NDARRAYS_ALL + (int, float):

tests/test_smartcachedataset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def test_shuffle(self):
140140

141141
dataset.shutdown()
142142

143+
@unittest.skip("https://github.com/Project-MONAI/MONAI/issues/5660 blocks the ci")
143144
def test_set_data(self):
144145
data_list1 = list(range(10))
145146

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def skip_if_downloading_fails():
129129
except ssl.SSLError as ssl_e:
130130
if "decryption failed" in str(ssl_e):
131131
raise unittest.SkipTest(f"SSL error while downloading: {ssl_e}") from ssl_e
132-
except RuntimeError as rt_e:
132+
except (RuntimeError, OSError) as rt_e:
133133
if "unexpected EOF" in str(rt_e):
134134
raise unittest.SkipTest(f"error while downloading: {rt_e}") from rt_e # incomplete download
135135
if "network issue" in str(rt_e):

0 commit comments

Comments
 (0)