summarize_errors#
- pharmpy.tools.summarize_errors(results)[source]#
Summarize errors and warnings from one or multiple model runs.
Summarize the errors and warnings found after running the model/models.
- Parameters:
results (list, ModelfitResults) – List of ModelfitResults or single ModelfitResults
- Returns:
pd.DataFrame – A DataFrame of errors with model name, category (error or warning), and an int as index, an empty DataFrame if there were no errors or warnings found.
Examples
>>> from pharmpy.modeling import load_example_model >>> from pharmpy.tools import summarize_errors >>> model = load_example_model("pheno") >>> summarize_errors(model)