unepify#

mrinufft.trajectories.tools.unepify(trajectory: ndarray[tuple[int, ...], dtype[_ScalarType_co]], Ns_readouts: int, Ns_transitions: int) ndarray[tuple[int, ...], dtype[_ScalarType_co]][source]#

Recover single-readout shots from multi-readout trajectory.

Reformat an EPI-like trajectory with multiple readouts and transitions to more single-readout shots by discarding the transition parts.

Note that it can also be applied to any array of shape (Nc, Ns_readouts + Ns_transitions, …) such as acquired samples for example.

Parameters:
  • trajectory (NDArray) – Trajectory to reduce by discarding transitions between readouts.

  • Ns_readouts (int) – Number of samples within a single readout.

  • Ns_transitions (int) – Number of samples/steps between the readouts.

Returns:

Trajectory with more but shorter single shots.

Return type:

NDArray