pysted.utils.shift_data

pysted.utils.shift_data(data, peak_idx=5)

Function to shift the data (made for light curves, might be of use elsewhere) so the peak is on idx 5

Parameters:
  • data – data to shift

  • peak_idx – idx at which we want the peak to be

Returns:

The shifted data