Skip to content

Commit

Permalink
BUG: Correct xarray_from_image image_dims type
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed May 3, 2022
1 parent bde9260 commit 3fbebc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wrapping/Generators/Python/itk/support/xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def xarray_from_image(l_image: "itkt.ImageOrImageSource") -> "xr.DataArray":
direction = np.flip(itk.array_from_matrix(l_image.GetDirection()))
image_dimension = l_image.GetImageDimension()

image_dims: Tuple[str, str, str] = ("x", "y", "z", "t")
image_dims: Tuple[str, str, str, str] = ("x", "y", "z", "t")
coords = {}
for l_index, dim in enumerate(image_dims[:image_dimension]):
coords[dim] = np.linspace(
Expand Down

0 comments on commit 3fbebc0

Please sign in to comment.