Skip to content

Commit c7595ff

Browse files
committed
BUG: Add missing enumerate with multi-ndarray-output itk filters
Required for returning the (registered_image, transform_parameters) output when ndarray's is passed for the fixed and moving image in itk-elastix.
1 parent ffa9ebb commit c7595ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Wrapping/Generators/Python/itkHelpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def image_filter_wrapper(*args, **kwargs):
9898
output = image_filter(*tuple(args_list), **kwargs)
9999
if isinstance(output, tuple):
100100
output_list = list(output)
101-
for index, value in output_list:
101+
for index, value in enumerate(output_list):
102102
if isinstance(value, itk.Image):
103103
if have_xarray_input:
104104
data_array = itk.xarray_from_image(value)

0 commit comments

Comments
 (0)