MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / __init__

Method __init__

monai/transforms/spatial/array.py:1457–1460  ·  view source on GitHub ↗
(self, prob: float = 0.1, spatial_axis: Sequence[int] | int | None = None, lazy: bool = False)

Source from the content-addressed store, hash-verified

1455 backend = Flip.backend
1456
1457 def __init__(self, prob: float = 0.1, spatial_axis: Sequence[int] | int | None = None, lazy: bool = False) -> None:
1458 RandomizableTransform.__init__(self, prob)
1459 LazyTransform.__init__(self, lazy=lazy)
1460 self.flipper = Flip(spatial_axis=spatial_axis, lazy=lazy)
1461
1462 @LazyTransform.lazy.setter # type: ignore
1463 def lazy(self, val: bool):

Callers

nothing calls this directly

Calls 2

FlipClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected