points_to_waveform#
- pypulseqpp.points_to_waveform()[source]#
1D interpolate amplitude values amplitudes at time indices times as per the gradient raster time grad_raster_time to generate a gradient waveform.
- Parameters:
amplitudes (numpy.ndarray) – Amplitude values at time indices times.
grad_raster_time (float) – Gradient raster time.
times (numpy.ndarray) – Time indices.
- Returns:
waveform – Gradient waveform.
- Return type:
Notes
This is PyPulseq’s function. Events go in as the namespaces it expects and come back with their fields in slots.