mech_resonance_spectrum#
- pypulseqpp.safety.mech_resonance_spectrum()[source]#
Return the gradient amplitude spectrum of one window, per physical axis.
The window is sampled, tapered and padded as
check_mech_resonance()reads it, so a diagram of a band and the verdict on it read the same amplitudes.- Parameters:
seq (Sequence) – Sequence to read.
window (int, default=0) – Which window, counted from zero. A report names the worst window of each band as
window.window_width (float, default=0.04) – Window length (s). Use the width of the report the window index refers to.
stride (float, default=None) – Step between window starts (s); half the width by default.
frequency_oversampling (int, default=3) – Zero-padded transform length, in window lengths.
rotation (array_like, default=None) – 3x3 prescription rotation from logical to physical axes, composed after each block’s own rotation; identity (axial) when
None.system (pypulseqpp.Opts, default=None) – Source of the gyromagnetic ratio (Hz/T);
seq.systemwhenNone, then the defaultOpts.
- Returns:
frequency(Hz), one per bin;amplitude,(3, bins)in mT/m for x, y and z;axes, the names in that order;window,window_start(s),window_width(s) andfrequency_step(Hz).- Return type:
SimpleNamespace
- Raises:
ValueError – If
window_widthorstrideis not positive,frequency_oversamplingis below 1,windowis negative, or the sequence has no window of that index.