Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Other methods

Miscellaneous methods provided by MR-zero. These are currently exported directly, but might be sorted into sub-modules if the list grows.

generate_brainweb_phantoms

Builds MR-zero phantoms with the data provided by BrainWeb. These phantoms are not stored in the repository; call this function once to generate them locally.

The configuration files with the used tissue parameters can be found here: brainweb_data.json

ParameterDescription
outpub_dirpath to the folder where the generated phantoms (and a cache folder for downloaded data) are written to
configone of "3T", "7T-noise", or "3T-highres-fat"

sig_to_mrd

Write the simulation output to an ISMRMD file; supported by many reconstruction tools.

ParameterDescription
mrd_pathpath where the file will be written to
mr0_signalsignal to write, shape [samples, channels]
seqpulseq sequence object (for kspace trajectory, labels, definitions)
verboselogging verbosity (0 to 5)

pulseq_write_cartesian

Warning

Outdated - we suggest writing sequences with Pulseq(-zero) instead. Exporters might be removed in the future.

Export an MR-zero sequence to Pulseq. Since MR-zero sequences have no limitations in timing, slew rates, amplitudes and more, this exporter has to try to convert this into a sequence that can actually be measured. The exporter only supports cartesian trajectories due to its use of trapezoidal gradients. There is no guarantee that it produces the expected results.

ParameterDescription
seq_paramthe mr0 sequence object to export
pathpath to write the .seq file to
FOVfield of view, used for slice selection to scale gradients and
plot_seqwether to plot the generated pulseq sequence
num_slicesused in combination with FOV to determine slice thickness
write_dataignored