Skip to content

Commit 5d7085d

Browse files
committed
fixes
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
1 parent d2d42d3 commit 5d7085d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/transforms/spatial/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def __call__(
517517
dtype=dtype,
518518
)
519519
if self.recompute_affine and isinstance(data_array, MetaTensor):
520-
data_array.affine @= scale_affine(affine_, original_spatial_shape, actual_shape)
520+
data_array.affine = scale_affine(affine_, original_spatial_shape, actual_shape)
521521
return data_array
522522

523523
def inverse(self, data: torch.Tensor) -> torch.Tensor:

0 commit comments

Comments
 (0)