steady_state_dummies#
- pypulseqpp.sequences.steady_state_dummies()[source]#
Return the dummy repetitions that bring a spoiled or balanced steady state within
tolerance.The count is of repetitions played before acquiring, so that the magnetisation is within
toleranceof its steady state. From equilibrium, the distance to a spoiled steady state shrinks byexp(-repetition_s / t1_s) * cos(flip)each repetition. A flip of 90 degrees or more reaches it after one. Givent2_s, the count is for a balanced (bSSFP) steady state reached from an alpha/2 catalyst, whose distance shrinks byE1 cos^2(flip / 2) + E2 sin^2(flip / 2), withE1, E2 = exp(-repetition_s / t1_s), exp(-repetition_s / t2_s)(Scheffler, Magn Reson Med 2003). At least one is always played.- Parameters:
repetition_s (float) – Time between two excitations of the same magnetisation (s).
flip_angle_deg (float) – Excitation flip angle (degrees).
t1_s (float, default=STEADY_STATE_T1_S) – T1 the steady state is reached for (s).
t2_s (float | None, default=None) – T2 a balanced steady state is reached for (s), as
STEADY_STATE_T2_S;Nonecounts for a spoiled one.tolerance (float, default=0.01) – Fraction of the distance from equilibrium to the steady state left.
- Raises:
ValueError – If a time or the tolerance is not positive, or the tolerance is not below one.
Examples
>>> from pypulseqpp import sequences >>> sequences.steady_state_dummies(5e-3, 12.0) 182 >>> sequences.steady_state_dummies(0.5, 90.0) 1 >>> sequences.steady_state_dummies(3.5e-3, 60.0, t2_s=0.1) 443