Skip to content

Commit

Permalink
auto updates (Project-MONAI#5445)
Browse files Browse the repository at this point in the history
Signed-off-by: monai-bot <[email protected]>

- auto style fixing
- bump versioneer to 0.23 from 0.19

Signed-off-by: monai-bot <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Co-authored-by: Wenqi Li <[email protected]>
  • Loading branch information
monai-bot and wyli authored Nov 1, 2022
1 parent 5bdef46 commit a9f9987
Show file tree
Hide file tree
Showing 9 changed files with 690 additions and 266 deletions.
248 changes: 190 additions & 58 deletions monai/_version.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion monai/apps/pathology/transforms/post/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self, connectivity: Optional[int] = 1, dtype: DtypeLike = np.uint8)
self.connectivity = connectivity
self.dtype = dtype

def __call__( # type: ignore
def __call__(
self, image: NdarrayOrTensor, mask: Optional[NdarrayOrTensor] = None, markers: Optional[NdarrayOrTensor] = None
) -> NdarrayOrTensor:
"""
Expand Down
1 change: 0 additions & 1 deletion tests/test_generate_instance_border.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

np.random.RandomState(123)


for p in TEST_NDARRAYS:
EXCEPTION_TESTS.append(
[
Expand Down
1 change: 0 additions & 1 deletion tests/test_generate_instance_borderd.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

np.random.RandomState(123)


for p in TEST_NDARRAYS:
EXCEPTION_TESTS.append(
[
Expand Down
1 change: 0 additions & 1 deletion tests/test_generate_watershed_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

np.random.RandomState(123)


for p in TEST_NDARRAYS:
EXCEPTION_TESTS.append(
[
Expand Down
1 change: 0 additions & 1 deletion tests/test_generate_watershed_maskd.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

np.random.RandomState(123)


for p in TEST_NDARRAYS:
EXCEPTION_TESTS.append(
[
Expand Down
1 change: 0 additions & 1 deletion tests/test_sobel_gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
torch.cat([OUTPUT_3x3[0:1], OUTPUT_3x3[1:2] + 0.5]),
]


TEST_CASE_KERNEL_0 = [
{"kernel_size": 3, "dtype": torch.float64},
(torch.tensor([-0.5, 0.0, 0.5], dtype=torch.float64), torch.tensor([0.25, 0.5, 0.25], dtype=torch.float64)),
Expand Down
1 change: 0 additions & 1 deletion tests/test_sobel_gradientd.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
OUTPUT_3x3_ZERO_PAD[1, 7, 0] = OUTPUT_3x3_ZERO_PAD[1, 7, -1] = 3.0 / 8.0
OUTPUT_3x3_ZERO_PAD[1, 9, 0] = OUTPUT_3x3_ZERO_PAD[1, 9, -1] = -3.0 / 8.0


TEST_CASE_0 = [{"image": IMAGE}, {"keys": "image", "kernel_size": 3, "dtype": torch.float32}, {"image": OUTPUT_3x3}]
TEST_CASE_1 = [{"image": IMAGE}, {"keys": "image", "kernel_size": 3, "dtype": torch.float64}, {"image": OUTPUT_3x3}]
TEST_CASE_2 = [
Expand Down
Loading

0 comments on commit a9f9987

Please sign in to comment.