add_cmt#
- pharmpy.modeling.add_cmt(model)[source]#
Add a CMT column to the model dataset and datainfo if not existed
In case of multiple doses, this method is dependent on the presence of an admid column to correctly number each dose.
NOTE : Existing CMT is based on datainfo type being set to ‘compartment’ and a column named ‘CMT’ can be replaced
- Parameters:
model (Model) – Pharmpy model
- Returns:
model (Model) – Pharmpy model