get_aic

threadcount.fit.get_aic(model, error=nan)[source]

Return the aic_real of a successful fit.

Parameters:
  • model (lmfit.model.ModelResult) – The modelresult to extract info from.

  • error (float, optional) – The numeric value to assign any unsuccessful modelresult, by default np.nan

Returns:

The modelresult’s aic_real, or error

Return type:

float