check_hardware_constraints

check_hardware_constraints#

mrinufft.trajectories.utils.check_hardware_constraints(gradients, slewrates, gmax=0.04, smax=0.1, order=None)[source]#

Check if a trajectory satisfies the gradient hardware constraints.

Parameters:
  • gradients (np.ndarray) – Gradients to check

  • slewrates (np.ndarray) – Slewrates to check

  • gmax (float, optional) – Maximum gradient amplitude in T/m. The default is DEFAULT_GMAX.

  • smax (float, optional) – Maximum slew rate in T/m/ms. The default is DEFAULT_SMAX.

  • order (int or str, optional) – Norm order defining how the constraints are checked, typically 2 or np.inf, following the numpy.linalg.norm conventions on parameter ord. The default is None.

Returns:

  • bool – True if the trajectory satisfies the constraints, False otherwise.

  • float – Maximum gradient amplitude in T/m.

  • float – Maximum slew rate in T/m/ms.