Skip to content

Commit 7e4782e

Browse files
authored
Update array.py
To satisfy the linter Signed-off-by: Eloi <[email protected]>
1 parent 79e8aa0 commit 7e4782e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/transforms/utility/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ def _check_all_values_uneven(self, x: tuple) -> None:
16091609

16101610
def _check_filter_format(self, filter: str | NdarrayOrTensor | nn.Module, filter_size: int | None = None) -> None:
16111611
if isinstance(filter, str):
1612-
if filter != "gauss" and not filter_size: # Gauss is the only filter that does not require `filter_size`
1612+
if filter != "gauss" and not filter_size: # Gauss is the only filter that does not require `filter_size`
16131613
raise ValueError("`filter_size` must be specified when specifying filters by string.")
16141614
if filter_size and filter_size % 2 == 0:
16151615
raise ValueError("`filter_size` should be a single uneven integer.")

0 commit comments

Comments
 (0)