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

Method __init__

monai/data/grid_dataset.py:130–139  ·  view source on GitHub ↗
(
        self,
        keys: KeysCollection,
        patch_size: Sequence[int],
        start_pos: Sequence[int] = (),
        mode: str | None = NumpyPadMode.WRAP,
        **pad_opts,
    )

Source from the content-addressed store, hash-verified

128 start_pos_key = "start_pos"
129
130 def __init__(
131 self,
132 keys: KeysCollection,
133 patch_size: Sequence[int],
134 start_pos: Sequence[int] = (),
135 mode: str | None = NumpyPadMode.WRAP,
136 **pad_opts,
137 ):
138 self.keys = ensure_tuple(keys)
139 self.patch_iter = PatchIter(patch_size=patch_size, start_pos=start_pos, mode=mode, **pad_opts)
140
141 def __call__(
142 self, data: Mapping[Hashable, NdarrayTensor]

Callers

nothing calls this directly

Calls 2

ensure_tupleFunction · 0.90
PatchIterClass · 0.85

Tested by

no test coverage detected