Skip to content

Commit eb6bbe8

Browse files
authored
auto updates (#5812)
1 parent df6bc9c commit eb6bbe8

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def generate_apidocs(*args):
118118
"show_toc_level": 1,
119119
"footer_items": ["copyright"],
120120
"navbar_align": "content",
121-
"logo": {"image_light": "../images/MONAI-logo-color.png", "image_dark": "../images/MONAI-logo-color.png"},
121+
"logo": {"image_light": "MONAI-logo-color.png", "image_dark": "MONAI-logo-color.png"},
122122
}
123123
html_context = {
124124
"github_user": "Project-MONAI",

monai/networks/layers/simplelayers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ def __init__(self, filter: NdarrayOrTensor) -> None:
670670
self.filter = convert_to_tensor(filter, dtype=torch.float32)
671671

672672
def forward(self, x: torch.Tensor) -> torch.Tensor:
673-
return apply_filter(x, self.filter) # type: ignore
673+
return apply_filter(x, self.filter)
674674

675675

676676
class MeanFilter(ApplyFilter):

monai/transforms/utility/array.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ def _check_filter_format(
16271627
elif isinstance(filter, torch.Tensor) or isinstance(filter, np.ndarray):
16281628
if filter.ndim not in [1, 2, 3]:
16291629
raise ValueError("Only 1D, 2D, and 3D filters are supported.")
1630-
self._check_all_values_uneven(filter.shape) # type: ignore
1630+
self._check_all_values_uneven(filter.shape)
16311631
elif isinstance(filter, (nn.Module, Transform)):
16321632
pass
16331633
else:

tests/test_image_filter.py

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# See the License for the specific language governing permissions and
1010
# limitations under the License.
1111

12-
1312
import unittest
1413

1514
import numpy as np

tests/test_preset_filters.py

-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
TEST_CASES_MEAN = [(3, 3, torch.ones(3, 3, 3)), (2, 5, torch.ones(5, 5))]
2020

21-
2221
TEST_CASES_LAPLACE = [
2322
(
2423
3,
@@ -45,7 +44,6 @@
4544
(2, 3, torch.Tensor([[0, 1, 0], [1, 1, 1], [0, 1, 0]])),
4645
]
4746

48-
4947
TEST_CASES_SHARPEN = [
5048
(
5149
3,

0 commit comments

Comments
 (0)