From b6fb2abc3e2ea92bb9cc4412485462c2137c065c Mon Sep 17 00:00:00 2001 From: Yiheng Wang Date: Fri, 20 Dec 2024 07:25:44 +0000 Subject: [PATCH] update format Signed-off-by: Yiheng Wang --- monai/data/meta_tensor.py | 6 +----- monai/transforms/io/array.py | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/monai/data/meta_tensor.py b/monai/data/meta_tensor.py index 8282ca2098..c4c491e1b9 100644 --- a/monai/data/meta_tensor.py +++ b/monai/data/meta_tensor.py @@ -532,11 +532,7 @@ def clone(self, **kwargs): @staticmethod def ensure_torch_and_prune_meta( - im: NdarrayTensor, - meta: dict | None, - simple_keys: bool = False, - pattern: str | None = None, - sep: str = ".", + im: NdarrayTensor, meta: dict | None, simple_keys: bool = False, pattern: str | None = None, sep: str = "." ): """ Convert the image to MetaTensor (when meta is not None). If `affine` is in the `meta` dictionary, diff --git a/monai/transforms/io/array.py b/monai/transforms/io/array.py index 7fa710b3a4..1023cd7a7d 100644 --- a/monai/transforms/io/array.py +++ b/monai/transforms/io/array.py @@ -139,7 +139,6 @@ def __init__( prune_meta_pattern: str | None = None, prune_meta_sep: str = ".", expanduser: bool = True, - device: None | str | torch.device = None, *args, **kwargs, ) -> None: