Opts

Contents

Opts#

class pypulseqpp.Opts[source]#

Bases: Opts

PyPulseq system limits with shared raster defaults.

The constructor accepts PyPulseq’s parameters. Raster defaults are 20 us for the gradient and block duration rasters, 2 us for the RF and ADC rasters, and zero for the RF and ADC dead times and the RF ringdown time. Set the actual hardware timings before checking a sequence.

Gradient amplitude and slew-rate limits are stored in Hz/m and Hz/m/s after conversion from grad_unit and slew_unit; gamma is in Hz/T and B0 in T.

Importing pypulseqpp installs these defaults for PyPulseq factories. Constructing Opts alone does not change the shared default; use set_as_default or reset_default.

Examples

>>> import pypulseqpp as pp
>>> system = pp.Opts(max_grad=40, grad_unit="mT/m", max_slew=150, slew_unit="T/m/s")
>>> system.max_grad
1703040.0
>>> system.grad_raster_time, system.rf_raster_time
(2e-05, 2e-06)

Methods

reset_default

Install a fresh vendor-neutral system as the shared default.

set_as_default

Attributes