refit_marginal#

mufasa.master_fitter.refit_marginal(reg, ncomp, lnk_thresh=5, holes_only=False, multicore=True, save_para=True, method='best_neighbour', refit_only=True, **kwargs_marg)[source]#

Refit pixels with fits that appears marginally okay, as deterined by the specified log-likelihood threshold provided.

Parameters:
  • reg (Region object) – A Region object with the cube to be fitted

  • ncomp (int) – Number of components of the model to be refitted

  • lnk_thresh (float, optional) – Log-likelihood threshold used to determine the pixels to refit (default is 5).

  • holes_only (bool, optional) – If True, only refits pixels surrounded by good fits (default is False).

  • multicore (bool or int, optional) – Number of CPU cores to use for parallel processing (default is True, which uses all available CPUs minus 1). If an integer is provided, it specifies the number of CPU cores to use.

  • save_para (bool, optional) – If True, saves the fit parameters as .fits files after refitting (default is True).

  • method (str, optional) – The method used for refitting marginal pixels (default is ‘best_neighbour’).

  • **kwargs_marg (dict, optional) – Additional keyword arguments for fine-tuning the marginal refitting process.