Skip to content

Commit

Permalink
auto updates (#5812)
Browse files Browse the repository at this point in the history
  • Loading branch information
monai-bot committed Jan 5, 2023
1 parent df6bc9c commit eb6bbe8
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def generate_apidocs(*args):
"show_toc_level": 1,
"footer_items": ["copyright"],
"navbar_align": "content",
"logo": {"image_light": "../images/MONAI-logo-color.png", "image_dark": "../images/MONAI-logo-color.png"},
"logo": {"image_light": "MONAI-logo-color.png", "image_dark": "MONAI-logo-color.png"},
}
html_context = {
"github_user": "Project-MONAI",
Expand Down
2 changes: 1 addition & 1 deletion monai/networks/layers/simplelayers.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def __init__(self, filter: NdarrayOrTensor) -> None:
self.filter = convert_to_tensor(filter, dtype=torch.float32)

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


class MeanFilter(ApplyFilter):
Expand Down
2 changes: 1 addition & 1 deletion monai/transforms/utility/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,7 @@ def _check_filter_format(
elif isinstance(filter, torch.Tensor) or isinstance(filter, np.ndarray):
if filter.ndim not in [1, 2, 3]:
raise ValueError("Only 1D, 2D, and 3D filters are supported.")
self._check_all_values_uneven(filter.shape) # type: ignore
self._check_all_values_uneven(filter.shape)
elif isinstance(filter, (nn.Module, Transform)):
pass
else:
Expand Down
1 change: 0 additions & 1 deletion tests/test_image_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.


import unittest

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions tests/test_preset_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

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


TEST_CASES_LAPLACE = [
(
3,
Expand All @@ -45,7 +44,6 @@
(2, 3, torch.Tensor([[0, 1, 0], [1, 1, 1], [0, 1, 0]])),
]


TEST_CASES_SHARPEN = [
(
3,
Expand Down

0 comments on commit eb6bbe8

Please sign in to comment.