We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 501bc45 commit c5ebb0dCopy full SHA for c5ebb0d
monai/transforms/spatial/array.py
@@ -536,7 +536,7 @@ def __call__(
536
lazy=lazy_,
537
)
538
if isinstance(data_array, MetaTensor) and "pixdim" in data_array.meta:
539
- data_array = data_array.clone() # type: MetaTensor
+ data_array = cast(MetaTensor, data_array.clone())
540
data_array.set_pixdim()
541
if self.recompute_affine and isinstance(data_array, MetaTensor):
542
if lazy_:
0 commit comments