get_ngaussians

threadcount.fit.get_ngaussians(fit)[source]

Determine the number of gaussians in a lmfit.model.Model.

Parameters:

fit (lmfit.model.Model or lmfit.model.ModelResult) – The model to analyze.

Returns:

The number of components whose name contains “gaussian”.

Return type:

int