connect_gradient#

mrinufft.trajectories.gradients.connect_gradient(kstarts: ndarray[tuple[int, ...], dtype[_ScalarType_co]], kends: ndarray[tuple[int, ...], dtype[_ScalarType_co]], gstarts: ndarray[tuple[int, ...], dtype[_ScalarType_co]], gends: ndarray[tuple[int, ...], dtype[_ScalarType_co]], acq: Acquisition | None = None, method: str = 'lp', N: int | None = None) ndarray[tuple[int, ...], dtype[_ScalarType_co]][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.