tomodrgn.mrc.LazyImage#
- class LazyImage(fname: str, shape: tuple[int, ...], dtype: dtype[Any] | None | type[Any] | _SupportsDType[dtype[Any]] | str | tuple[Any, int] | tuple[Any, SupportsIndex | Sequence[SupportsIndex]] | list[Any] | _DTypeDict | tuple[Any, Any], offset: int)[source]#
Bases:
object
Class to lazily load data from an MRC file on-the-fly
Methods
Load the data from disk to a numpy array