has_michaelis_menten_elimination#

pharmpy.modeling.has_michaelis_menten_elimination(model)[source]#

Check if the model describes Michaelis-Menten elimination

This function relies on heuristics and will not be able to detect all possible ways of coding the Michaelis-Menten elimination.

Parameters:

model (Model) – Pharmpy model

Returns:

bool – True if model has describes Michaelis-Menten elimination

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> has_michaelis_menten_elimination(model)
False
>>> model = set_michaelis_menten_elimination(model)
>>> has_michaelis_menten_elimination(model)
True