get_model_keys

threadcount.fit.get_model_keys(model_results, ignore=None)[source]

Retrieve the names of parameters from model results.

Allows you to ignore some parameters, typically fwhm and height in gaussian, as these are calculated from the other parameters.

Parameters:
  • model_results (lmfit.model.ModelResult, or list of lmfit.model.ModelResult) – The first entry which is not None will be analyzed.

  • ignore (str or list of str, optional) – Parameters ending in these entries will not be returned, by default None. If str, ignore will be split to a list on whitespace.

Returns:

The alphabetized parameter names found in the model_result which do not end in ignored values

Return type:

list of str