SequenceApp.resolve#
- SequenceApp.resolve()[source]#
Record the value a prescribed parameter took in the design.
Called from
init_sequencefor a parameter whose value the design chooses, such as the shortest echo time forte=None, or adjusts, such as a receiver bandwidth whose dwell time is rounded to the ADC raster.resolvedreports the recorded value in place of the requested one.- Parameters:
**values (object) – The value each parameter took, by name, in the unit it is prescribed in.
- Raises:
TypeError – If a name is not a parameter of
init_sequence.
Examples
>>> from pypulseqpp import sequences >>> class Pause(sequences.SequenceApp): ... MAX_GRAD, MAX_SLEW = 40.0, 150.0 ... def init_sequence(self, tr: float | None = None): ... self.tr = 10e-3 if tr is None else tr ... self.resolve(tr=self.tr) ... def loop(self): ... ... def kernel(self): ... >>> Pause().resolved, Pause(tr=20e-3).resolved ({'tr': 0.01}, {'tr': 0.02})