MRDLoader#
- class snake.mrd_utils.loader.MRDLoader(filename, dataset_name='dataset', writeable=False, swmr=False)[source]#
Bases:
LogMixin
Base class for MRD data loader.
This is to be used as a context manager.
It reimplements most of the methods of the mrd.Dataset class, and adds some useful wrappers. With this dataloader, you can open the dataset in readonly mode, which is not possible with mrd.
Methods
__init__
Get all dynamic data.
Load the coil covariance from the dataset.
Get dynamic data.
Get k-space frame trajectory/mask and data.
Load the phantom from the dataset.
Parse the sim config.
Load the sensitivity maps from the dataset.
Iterate over kspace frames of the dataset.
Attributes
Get the header from the mrd file.
log
Logger.
Number of acquisition in the dataset.
Number of coils.
Number of frames.
Number of samples in a single acquisition.
Number of samples in a single acquisition.
- Parameters:
filename (os.PathLike)
dataset_name (str)
writeable (bool)
swmr (bool)
- property header: ismrmrdHeader#
Get the header from the mrd file.
- property _dataset: Dataset#
Get MRD dataset.
- property n_shots: int#
Number of samples in a single acquisition.
Notes
for EPI this is the number of phase encoding lines in the EPI zigzag.