Opts#
- class pypulseqpp.Opts[source]#
Bases:
OptsPyPulseq 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_unitandslew_unit;gammais in Hz/T andB0in T.max_b1, the peak B1 the transmit chain allows, is stored in Hz (gamma B1) after conversion fromb1_unit, one ofHz,T,mT,uT(the default) andG;Nonesets no limit. The excitation and refocusing modules lengthen a pulse that would exceedMAX_B1_DERATEof it.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) >>> round(pp.Opts(max_b1=11.2).max_b1, 1), pp.Opts().max_b1 (476.9, None)
Methods
Install a fresh vendor-neutral system as the shared default. |
|
Attributes