connect_gradient#

mrinufft.trajectories.connect_gradient(kstarts: NDArray, kends: NDArray, gstarts: NDArray, gends: NDArray, acq: Acquisition | None = None, method: str = 'lp', N: int | None = None) NDArray[source]#

Get the gradient connections for a set of start and end points.

Parameters:
  • $params_connect

  • N (int, optional) – Number of time points to use. If None, the function will automatically determine the optimal number of time points.

Returns:

The gradient connections of shape (Nshots,N, 3)

Return type:

NDArray

Notes

  • This functions expects k-space points that are unnormalized (i.e., in m^-1).

  • If N is not provided, the function will compute the minimum length needed to satisfy the hardware constraints for each connection, and use the minimum length that satisfies all connections.