CONAN.models.spline_fit
=======================

.. py:function:: CONAN.models.spline_fit(data, res, useSpline, return_splfunc=False)

   Fit a spline to the data

   :param data: data for this lc/rv
   :type data: dict
   :param res: for lc: residuals after dividing flux by (transit model*para_baseline)
               for rv: residuals after subtracting rv model and para_baseline from the data
   :type res: array-like
   :param useSpline: the configuration for the spline fit
   :type useSpline: SimpleNamespace

   :returns: **spl** -- the spline fit to the data
   :rtype: array-like

