SequenceLibraries.absolute_offsets#
- SequenceLibraries.absolute_offsets()[source]#
Return every RF and ADC row’s offsets with its ppm offsets resolved.
- Parameters:
system (Opts) – The gamma (Hz/T) and B0 (T) the ppm offsets are resolved at.
- Returns:
rf (NDArray[np.float64]) –
(R, 2): each RF row’s frequency offset in Hz and phase offset in rad, aspypulseqpp.calc_absolute_offsets()gives them for its event.adc (NDArray[np.float64]) –
(D, 2): the same for each ADC row.
Examples
>>> import pypulseqpp as pp >>> seq = pp.Sequence(pp.Opts()) >>> seq.add_block(pp.make_block_pulse(1.0, duration=4e-3, freq_ppm=-3.45)) 1 >>> rf, adc = seq.libraries().absolute_offsets(pp.Opts(B0=3.0)) >>> rf.round(2).tolist(), adc.shape ([[-440.66, 0.0]], (0, 2))