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

Method __init__

monai/transforms/spatial/dictionary.py:1586–1597  ·  view source on GitHub ↗
(
        self,
        keys: KeysCollection,
        prob: float = 0.1,
        spatial_axis: Sequence[int] | int | None = None,
        allow_missing_keys: bool = False,
        lazy: bool = False,
    )

Source from the content-addressed store, hash-verified

1584 backend = Flip.backend
1585
1586 def __init__(
1587 self,
1588 keys: KeysCollection,
1589 prob: float = 0.1,
1590 spatial_axis: Sequence[int] | int | None = None,
1591 allow_missing_keys: bool = False,
1592 lazy: bool = False,
1593 ) -> None:
1594 MapTransform.__init__(self, keys, allow_missing_keys)
1595 RandomizableTransform.__init__(self, prob)
1596 LazyTransform.__init__(self, lazy=lazy)
1597 self.flipper = Flip(spatial_axis=spatial_axis, lazy=lazy)
1598
1599 @LazyTransform.lazy.setter # type: ignore
1600 def lazy(self, val: bool):

Callers

nothing calls this directly

Calls 2

FlipClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected