You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With numpy 1.21.0, PythonMedianImageFilterTest fails with:
2916: Traceback (most recent call last):
2916: File "/home/matt/src/ITK/Modules/Filtering/Smoothing/wrapping/test/MedianImageFilterTest.py", line 56, in <module>
2916: type_hints = get_type_hints(itk.median_image_filter, globalns= { 'itk': itk })
2916: File "/home/matt/bin/miniconda/lib/python3.8/typing.py", line 1266, in get_type_hints
2916: value = _eval_type(value, globalns, localns)
2916: File "/home/matt/bin/miniconda/lib/python3.8/typing.py", line 272, in _eval_type
2916: ev_args = tuple(_eval_type(a, globalns, localns) for a in t.__args__)
2916: File "/home/matt/bin/miniconda/lib/python3.8/typing.py", line 272, in <genexpr>
2916: ev_args = tuple(_eval_type(a, globalns, localns) for a in t.__args__)
2916: File "/home/matt/bin/miniconda/lib/python3.8/typing.py", line 272, in _eval_type
2916: ev_args = tuple(_eval_type(a, globalns, localns) for a in t.__args__)
2916: File "/home/matt/bin/miniconda/lib/python3.8/typing.py", line 272, in <genexpr>
2916: ev_args = tuple(_eval_type(a, globalns, localns) for a in t.__args__)
2916: File "/home/matt/bin/miniconda/lib/python3.8/typing.py", line 270, in _eval_type
2916: return t._evaluate(globalns, localns)
2916: File "/home/matt/bin/miniconda/lib/python3.8/typing.py", line 520, in _evaluate
2916: eval(self.__forward_code__, globalns, localns),
2916: File "<string>", line 1, in <module>
2916: NameError: name 'dtype' is not defined
2916: itkTestDriver: Process exited with return value: 1
Use 1.20.3 until this is addressed, issue is tracked in #2613.
0 commit comments