CONAN.models.spline_fit#
- CONAN.models.spline_fit(data, res, useSpline, return_splfunc=False)#
Fit a spline to the data
- Parameters:
data (dict) – data for this lc/rv
res (array-like) – for lc: residuals after dividing flux by (transit model*para_baseline) for rv: residuals after subtracting rv model and para_baseline from the data
useSpline (SimpleNamespace) – the configuration for the spline fit
- Returns:
spl – the spline fit to the data
- Return type:
array-like