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 2d703c4 commit b6dd460Copy full SHA for b6dd460
monai/transforms/inverse.py
@@ -198,7 +198,7 @@ def track_transform_meta(
198
raise
199
out_obj.meta[MetaKeys.AFFINE] = convert_to_tensor(affine, device=torch.device("cpu"), dtype=torch.float64)
200
spacing = affine_to_spacing(out_obj.meta[MetaKeys.AFFINE])
201
- out_obj.meta[MetaKeys.PIXDIM][1:1+len(spacing)] = spacing
+ out_obj.meta[MetaKeys.PIXDIM][1 : 1 + len(spacing)] = spacing
202
203
if not (get_track_meta() and transform_info and transform_info.get(TraceKeys.TRACING)):
204
if isinstance(data, Mapping):
0 commit comments