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

Method __init__

monai/transforms/spatial/array.py:1509–1513  ·  view source on GitHub ↗
(self, prob: float = 0.1, lazy: bool = False)

Source from the content-addressed store, hash-verified

1507 backend = Flip.backend
1508
1509 def __init__(self, prob: float = 0.1, lazy: bool = False) -> None:
1510 RandomizableTransform.__init__(self, prob)
1511 LazyTransform.__init__(self, lazy=lazy)
1512 self._axis: int | None = None
1513 self.flipper = Flip(spatial_axis=self._axis)
1514
1515 @LazyTransform.lazy.setter # type: ignore
1516 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