File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ def pixdim(self):
479479
480480 def set_pixdim (self ) -> None :
481481 """Update pixdim based on current affine."""
482- self .meta [MetaKeys .PIXDIM ][1 : 1 + len (self .pixdim )] = affine_to_spacing (self .affine )
482+ self .meta [MetaKeys .PIXDIM ][1 : 1 + len (self .pixdim )] = affine_to_spacing (self .affine )
483483
484484 def peek_pending_shape (self ):
485485 """
Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ def __call__(
536536 lazy = lazy_ ,
537537 )
538538 if isinstance (data_array , MetaTensor ) and "pixdim" in data_array .meta :
539- data_array = data_array .clone ()
539+ data_array = data_array .clone () # type: MetaTensor
540540 data_array .set_pixdim ()
541541 if self .recompute_affine and isinstance (data_array , MetaTensor ):
542542 if lazy_ :
You can’t perform that action at this time.
0 commit comments