tomodrgn.mrc.parse_mrc_list#
- parse_mrc_list(txtfile: str, lazy: bool = False) ndarray | list[LazyImage] [source]#
Load the MRC file(s) specified in a text file into memory as either a numpy array or a list of LazyImages.
- Parameters:
txtfile – path to newline-delimited text file listing the absolute path to the MRC file(s) to be loaded, or the path to the MRC file(s) relative to txtfile.
lazy – whether to load particle images now in memory (False) or later on-the-fly (True)
- Returns:
numpy array or list of LazyImages of all images in all MRC files