CONAN.conf.load_yamlfile
========================

.. py:function:: CONAN.conf.load_yamlfile(configfile, return_fit=False, init_decorr=False, lc_path=None, rv_path=None, verbose=False)

   configure CONAN from yaml file.

   :param configfile: path to .yaml configuration file.
   :type configfile: filepath;
   :param return_fit: whether to immediately perform the fit from this function call.
                      if True, the result object from the fit is also returned
   :type return_fit: bool;
   :param init_decorr: whether to run least-squares fit to determine start values of the decorrelation parameters.
                       Default is False
   :type init_decorr: bool;
   :param lc_path: path to light curve files. If None, the path in the config file is used.
   :type lc_path: str;
   :param rv_path: path to radial velocity files. If None, the path in the config file is used.
   :type rv_path: str;
   :param verbose: show print statements
   :type verbose: bool;

   :returns: * *lc_obj, rv_obj, fit_obj. if return_fit is True, the result object of fit is also returned*
             * **lc_obj** (*object;*) -- light curve data object generated from `CONAN.load_lighturves()`.
             * **rv_obj** (*object;*) -- rv data object generated from `CONAN.load_rvs()`
             * **fit_obj** (*object;*) -- fitting object generated from `CONAN.fit_setup()`.
             * **result** (*object;*) -- result object containing chains of the mcmc fit.

