spvctrl.data.util.downsample_transient#

downsample_transient(t: ndarray, U_spv: ndarray, U_diode: ndarray | None, N: int = 5000)[source]#

Log-downsample a transient for plotting. U_diode may be None when the diode channel is not recorded.