Skip to content

Commit

Permalink
Restore 'src_affine' for repeated inverse
Browse files Browse the repository at this point in the history
  • Loading branch information
liamchalcroft committed Apr 6, 2023
1 parent 06defb7 commit 77c41a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions monai/transforms/spatial/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def inverse(self, data: torch.Tensor) -> torch.Tensor:
with self.trace_transform(False):
# we can't use `self.__call__` in case a child class calls this inverse.
out: torch.Tensor = SpatialResample.__call__(self, data, **kw_args)
kw_args["src_affine"] = kw_args.get("dst_affine")
return out


Expand Down

0 comments on commit 77c41a8

Please sign in to comment.