Skip to content

Commit 99bc993

Browse files
committed
fix formatting
Signed-off-by: Fabian Klopfer <[email protected]>
1 parent d27bb78 commit 99bc993

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

monai/transforms/utility/array.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,7 @@ def __call__(self, img: NdarrayOrTensor):
12361236
"""
12371237
return self.trans(img)
12381238

1239+
12391240
class RandTorchIO(Transform, RandomizableTrait):
12401241
"""
12411242
This is a wrapper for TorchIO randomized transforms based on the specified transform name and args.

monai/transforms/utility/dictionary.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,14 +1460,7 @@ class TorchIOd(MapTransform):
14601460

14611461
backend = TorchIO.backend
14621462

1463-
def __init__(
1464-
self,
1465-
keys: KeysCollection,
1466-
name: str,
1467-
allow_missing_keys: bool = False,
1468-
*args,
1469-
**kwargs,
1470-
) -> None:
1463+
def __init__(self, keys: KeysCollection, name: str, allow_missing_keys: bool = False, *args, **kwargs) -> None:
14711464
"""
14721465
Args:
14731466
keys: keys of the corresponding items to be transformed.
@@ -1497,14 +1490,7 @@ class RandTorchIOd(MapTransform, RandomizableTrait):
14971490

14981491
backend = TorchIO.backend
14991492

1500-
def __init__(
1501-
self,
1502-
keys: KeysCollection,
1503-
name: str,
1504-
allow_missing_keys: bool = False,
1505-
*args,
1506-
**kwargs,
1507-
) -> None:
1493+
def __init__(self, keys: KeysCollection, name: str, allow_missing_keys: bool = False, *args, **kwargs) -> None:
15081494
"""
15091495
Args:
15101496
keys: keys of the corresponding items to be transformed.

0 commit comments

Comments
 (0)