CONAN.conf.fit_configfile
=========================

.. py:function:: CONAN.conf.fit_configfile(config_file='input_config.dat', out_folder='output', init_decorr=False, rerun_result=True, resume_sampling=False, lc_path=None, rv_path=None, shared_params={}, verbose=False)

   Run CONAN fit from configuration file.
   This loads the config file and creates the required objects (lc_obj, rv_obj, fit_obj) to perform the fit.

   :param config_file: path to configuration file.
   :type config_file: filepath;
   :param out_folder: path to folder where output files will be saved.
   :type out_folder: filepath;
   :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 rerun_result: whether to rerun using with already exisiting result inorder to remake plots/files. Default is True
   :type rerun_result: bool;
   :param resume_sampling: resume sampling from last saved position
   :type resume_sampling: 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 shared_params: dictionary of parameters to be shared
   :type shared_params: dict;
   :param verbose: show print statements
   :type verbose: bool;

   :returns: **result** -- result object containing chains of the fit.
   :rtype: object;

