Sequence.adc_kspace

Sequence.adc_kspace#

Sequence.adc_kspace()[source]#

Return the k-space location of each ADC sample, in 1/m.

The first result of calculate_kspace(), integrated the same way with block rotations applied, without sampling the trajectory between the samples; excitations reset it and refocusing pulses invert it.

Parameters:
  • trajectory_delay (float | ArrayLike, default=0.0) – Per-axis timing correction (s); positive values advance the gradient.

  • gradient_offset (float | ArrayLike, default=0.0) – A background gradient per axis, in Hz/m.

  • block_range (Sequence[int], default=None) – Two 1-based block indices; only those blocks are followed.

Returns:

(3, n): one column per ADC sample, in play order.

Return type:

NDArray[np.float64]

Examples

>>> import numpy as np
>>> import pypulseqpp as pp
>>> seq = pp.Sequence(pp.Opts())
>>> seq.add_block(pp.make_block_pulse(np.pi / 2, duration=1e-3))
1
>>> seq.add_block(pp.make_adc(num_samples=64, duration=3.2e-3))
2
>>> seq.adc_kspace().shape
(3, 64)