_prepare_fit_setup¶
- ell1fit.pipeline._prepare_fit_setup(parameters, requested_parameter_names, likelihood_func, parameters_with_unc, observation_length, model, template_funcs=None, weights=None, tolerance=1e-08, user_priors=None)[source]¶
Collect fit parameters, priors, factors, and initial fit values.
user_priorsis a list ofell1fit.priors.PriorSpecoverrides. It feeds both the priors and the scaling: seeell1fit.priors.user_prior_sigmas()for why a prior that does not also set the local scale would start the walkers outside itself.- Returns:
- FitSetup
The bundle defining what is being fitted. Must be built after the templates exist: the per-file
Phase_ioffset they determine is whatell1fit.priors.assign_logpriors()centres that parameter’s prior on.