Skip to content

Commit

Permalink
BUG: Add missing enumerate with multi-ndarray-output itk filters
Browse files Browse the repository at this point in the history
Required for returning the (registered_image, transform_parameters)
output when ndarray's is passed for the fixed and moving image in
itk-elastix.
  • Loading branch information
thewtex committed Jul 20, 2020
1 parent ffa9ebb commit c7595ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wrapping/Generators/Python/itkHelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def image_filter_wrapper(*args, **kwargs):
output = image_filter(*tuple(args_list), **kwargs)
if isinstance(output, tuple):
output_list = list(output)
for index, value in output_list:
for index, value in enumerate(output_list):
if isinstance(value, itk.Image):
if have_xarray_input:
data_array = itk.xarray_from_image(value)
Expand Down

0 comments on commit c7595ff

Please sign in to comment.