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

get

Load the data from disk to a numpy array

get() ndarray[source]#

Load the data from disk to a numpy array

Returns:

numpy array of data loaded from disk