Skip to content

Commit fe05f59

Browse files
committed
fix format issue
Signed-off-by: Wei_Chuan, Chiang <[email protected]>
1 parent 1aabdae commit fe05f59

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

monai/transforms/spatial/dictionary.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,9 @@ def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool | None = No
523523
lazy=lazy_,
524524
)
525525
if isinstance(d[key], MetaTensor) and f"{key}_meta_dict" in d:
526-
if 'filename_or_obj' in d[key].meta and is_supported_format(d[key].meta['filename_or_obj'], ["nii", "nii.gz"]):
526+
if "filename_or_obj" in d[key].meta and is_supported_format(
527+
d[key].meta["filename_or_obj"], ["nii", "nii.gz"]
528+
):
527529
d = transforms.sync_meta_info(key, d)
528530
if output_shape_k is None:
529531
output_shape_k = d[key].peek_pending_shape() if isinstance(d[key], MetaTensor) else d[key].shape[1:]

0 commit comments

Comments
 (0)