convert_gradients_to_slew_rates#
- mrinufft.trajectories.utils.convert_gradients_to_slew_rates(gradients, raster_time=0.01)[source]#
Derive the gradients over time to provide slew rates.
- Parameters:
gradients (NDArray) – Gradients over 2 or 3 directions.
raster_time (float, optional) – Amount of time between the acquisition of two consecutive samples in ms. The default is DEFAULT_RASTER_TIME.
- Returns:
slewrates (NDArray) – Slew rates corresponding to gradients.
initial_gradients (NDArray) – Gradients at the beginning of the readout window.
- Return type:
tuple[ndarray[Any, dtype[_ScalarType_co]], ndarray[Any, dtype[_ScalarType_co]]]