RfLayout#
- class pulserver.design.RfLayout[source]#
Bases:
objectThe RF definitions a plugin plays and the instances of one TR.
An instance plays the RF amplitude
amplitude * peak_hz * waveformof its definition, aspypulseqpp.Sequence.rf_instances()states. A control scales its instance with the protocol: a scanner that plays another value of the control multiplies the amplitude by the ratio of that value to the value in the evaluated protocol. An instance with controlNoneplays at the amplitude it was evaluated at.- Attributes:
instances (pp.RfInstances) – The definitions, numbered by first play, and the instances of one TR in play order.
control (tuple[RfControl | None, …]) – One entry per instance: the control its amplitude is proportional to, or
None.period (float) – The TR in seconds.
- Raises:
ValueError – If
controldoes not hold one entry per instance, orperiodis not positive.TypeError – If a control is neither
None,FloatKey.FLIPnor aUserKeymember. Other keys do not scale RF, and a plain string is not a member.
Methods
Return the layout of the RF instances of one TR. |
Attributes