reload_all_fitting

dysmalpy.fitting.reload_all_fitting(filename_galmodel=None, filename_results=None, fit_method=None)[source]

Utility to reload the Galaxy and Results object from a previous fit.

Parameters:
  • filename_galmodel (str) – Full path to the file storing the Galaxy object

  • filename_results (str) – Full path to the file storing the FitResults object

  • fit_method (str) – Fitting method that was run. Used to determine the subclass of FitResults for reloading. Can be set to mpfit, mcmc, or nested.

Returns:

  • gal (obj) – Galaxy instance, including model with the current best-fit parameters

  • retults (obj) – MCMCResults or MPFITResults instance, containing all fit results and analysis