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

Method __init__

monai/data/image_reader.py:1241–1254  ·  view source on GitHub ↗
(
        self,
        npz_keys: KeysCollection | None = None,
        channel_dim: str | int | None = None,
        allow_pickle: bool = False,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

1239 """
1240
1241 def __init__(
1242 self,
1243 npz_keys: KeysCollection | None = None,
1244 channel_dim: str | int | None = None,
1245 allow_pickle: bool = False,
1246 **kwargs,
1247 ):
1248 super().__init__()
1249 if npz_keys is not None:
1250 npz_keys = ensure_tuple(npz_keys)
1251 self.npz_keys = npz_keys
1252 self.channel_dim = float("nan") if channel_dim == "no_channel" else channel_dim
1253 self.allow_pickle = allow_pickle
1254 self.kwargs = kwargs
1255
1256 def verify_suffix(self, filename: Sequence[PathLike] | PathLike) -> bool:
1257 """

Callers

nothing calls this directly

Calls 2

ensure_tupleFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected