is_strictness_fulfilled#
- pharmpy.tools.is_strictness_fulfilled(model, results, strictness)[source]#
Takes a ModelfitResults object and a statement as input and returns True/False if the evaluation of the statement is True/False.
- Parameters:
model (Model) – Model for parameter specific strictness.
results (ModelfitResults) – ModelfitResults object
strictness (str) – A strictness expression
- 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(model, res, "minimization_successful or rounding_errors") True