Sequence.add_block#
- Sequence.add_block()[source]#
Append one block playing
events.- Parameters:
*events – Any mixture of RF, gradient, ADC, delay, label, trigger, rotation, RF shim and soft delay events. A bare delay sets a floor on the block’s duration.
- Returns:
The new block’s 1-based index.
- Return type:
Notes
The block lasts as long as its longest event, rounded up onto the block duration raster.
Examples
>>> import pypulseqpp as pp >>> seq = pp.Sequence(pp.Opts()) >>> gx = pp.make_trapezoid("x", area=1000, duration=2e-3) >>> seq.add_block(gx, pp.make_delay(5e-3)) 1 >>> seq.block_durations[1] 0.005