Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto updates #5812

Merged
merged 2 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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