TransformFOV.trajectories

TransformFOV.trajectories#

TransformFOV.trajectories()[source]#

Return ADC trajectories on the channel axes, in 1/m.

Uses block_k_origin as the position entering the selected range, without updating it. Block rotation extensions are not applied.

Parameters:
  • seq (Sequence) – Sequence to sample.

  • block_range (Sequence[int], default=None) – Inclusive, 1-based range; defaults to the whole sequence.

Returns:

Block index and a (3, n_samples) trajectory for each ADC block. Blocks without ADC samples are omitted.

Return type:

list[tuple[int, NDArray[np.float64]]]

Examples

>>> import pypulseqpp as pp
>>> seq = pp.Sequence(pp.Opts())
>>> readout = pp.make_trapezoid("x", flat_area=1000, flat_time=3.2e-3)
>>> adc = pp.make_adc(num_samples=8, duration=3.2e-3, delay=readout.rise_time)
>>> seq.add_block(readout, adc)
1
>>> [(block, k.shape) for block, k in pp.TransformFOV(scale=(1, 1, 1)).trajectories(seq)]
[(1, (3, 8))]