Sequence.block_rotations#
- Sequence.block_rotations()[source]#
Return the rotation each block turns its gradients by.
Entry
iis blocki + 1: the 1-based row ofrotationsitsROTATIONSextension names, and 0 for a block without one. A block carries at most one rotation.Examples
>>> import numpy as np >>> import pypulseqpp as pp >>> seq = pp.Sequence(pp.Opts()) >>> gx = pp.make_trapezoid("x", area=1000, duration=2e-3) >>> _ = seq.add_block(gx) >>> _ = seq.add_block(gx, pp.make_rotation(np.pi / 2)) >>> seq.block_rotations().tolist() [0, 1]