CONAN.models.jump_fit#
- CONAN.models.jump_fit(data, res, useJump, return_coeffs=False)#
Fit Heaviside step offsets at given jump timestamps.
- Parameters:
data (dict) – data for this lc/rv (must contain useJump.par and “col2” for errors)
res (array-like) – for lc: residuals after dividing flux by (transit model * para_baseline), centered around 1 for rv: residuals after subtracting rv model and para_baseline, centered around 0
useJump (SimpleNamespace) – .par : column key for the jump axis, e.g. “col0” for time .jump_times : list of timestamps where flux/rv jumps occur
return_coeffs (bool) – if True, also return the fitted jump amplitudes
- Returns:
jmp (array-like) – the Heaviside fit evaluated at every data point
coeffs (array-like, optional) – fitted jump amplitudes (one per entry in jump_times), returned when return_coeffs=True