set_instantaneous_absorption#
- pharmpy.modeling.set_instantaneous_absorption(model)[source]#
Set or change to instantaneous absorption rate.
Currently lagtime together with instantaneous absorption is not supported.
- Parameters:
model (Model) – Model to set or change absorption rate
- Returns:
Model – Pharmpy model object
Examples
>>> from pharmpy.modeling import * >>> model = load_example_model("pheno") >>> model = set_instantaneous_absorption(model) >>> model.statements.ode_system Bolus(AMT, admid=1) → CENTRAL ┌───────┐ │CENTRAL│──CL/V→ └───────┘