Study storage#
Study.save(path) saves inputs to a portable .mrax bundle.
save_study_results(study, results, path) includes fitted outputs and also
defaults to a bundle. Pass bundle=False for a manifest folder.
load_study_results and load_precomputed_fields accept either format.
See MRax Study Storage for examples and image exports.
- mrax.data_struct.storage.save_study_results(study: Study, results: list[dict[str, Any]], output_dir: str | Path, study_name: str = 'study', targets: list[str] | None = None, file_extension: str = '.mrd', experiment_metadata: dict[str, Any] | None = None, save_nifti: bool = False, *, bundle: bool = True, overwrite: bool = False, progress_callback=None)#
Save a portable .mrax bundle. Use bundle=False for a manifest folder.
- mrax.data_struct.storage.load_study_results(manifest_path: str | Path) dict[str, Any]#
Load study manifest plus arrays from ISMRMRD files.
- mrax.io.export_image_files(path, array, *, dims=None, affine=None, geometry=None, format='nifti', unit='', description='MRax image', overwrite=False)#
Write one NIfTI per spatial frame, or one DICOM series per frame.