is_strictness_fulfilled#

pharmpy.tools.is_strictness_fulfilled(res, model, statement)[source]#

Takes a ModelfitResults object and a statement as input and returns True/False if the evaluation of the statement is True/False.

Parameters:
  • results (ModelfitResults) – ModelfitResults object

  • model (Model) – Model for parameter specific strictness.

  • statement (str) – A statement containing the strictness criteria

Returns:

bool – A bool indicating whether the strictness criteria are fulfilled or not.

Examples

>>> from pharmpy.tools import *
>>> from pharmpy.modeling import *
>>> res = load_example_modelfit_results('pheno')
>>> model = load_example_model('pheno')
>>> is_strictness_fulfilled(res, model, "minimization_successful or rounding_errors")
True