Closed
Description
Describe the bug
https://github.com/Project-MONAI/MONAI/actions/runs/5301487274/jobs/9595795019
======================================================================
ERROR: test_init_from_array (tests.test_image_filter.TestImageFilter)
Test init with custom filter and assert wrong filter shape throws an error
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/MONAI/MONAI/tests/test_image_filter.py", line 77, in test_init_from_array
_ = ImageFilter(np.ones((3, 3)))
File "/home/runner/work/MONAI/MONAI/monai/transforms/utility/array.py", line 1589, in __init__
self._check_kwargs_are_present(filter, **kwargs)
File "/home/runner/work/MONAI/MONAI/monai/transforms/utility/array.py", line 1645, in _check_kwargs_are_present
if filter == "gauss" and "sigma" not in kwargs.keys():
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
----------------------------------------------------------------------