save_choice_fit_stats

threadcount.fit.save_choice_fit_stats(filename, fit_results, choices, fit_info='auto', model_keys='auto', snr=None)[source]

Compile fit choice and parameter summary, and save to file.

Parameters:
  • filename (str) – Name of output file

  • fit_results (list of iterable of lmfit.model.ModelResult) – All the fit options to choose from

  • choices (iterable of int) – Which fit_result to choose for each pixel in iterable

  • fit_info (list of str or "auto", optional) – List of lmfit.model.ModelResult attributes to be recorded, by default “auto”

  • model_keys (list of str, optional) – The ModelResult.params parameter names to be recorded, by default “auto”. The default will get this automatically with get_model_keys

  • snr (numpy.ndarray or None) – If not None, will save the snr to the parameters file.