Bolus#
- class pharmpy.model.Bolus(amount, admid=1)[source]#
Bases:
Dose
,Immutable
A Bolus dose
- Parameters:
amount (symbol) – Symbolic amount of dose
admid (int) – Administration ID
Examples
>>> from pharmpy.model import Bolus >>> dose = Bolus.create("AMT") >>> dose Bolus(AMT, admid=1)
Attributes Summary
Symbolic amount of dose
Get set of all free symbols in the dose
Methods Summary
create
(amount[, admid])from_dict
(d)replace
(**kwargs)subs
(substitutions)Substitute expressions or symbols in dose
to_dict
()Attributes Documentation
- amount#
Symbolic amount of dose
- free_symbols#
Get set of all free symbols in the dose
Examples
>>> from pharmpy.model import Bolus >>> dose = Bolus.create("AMT") >>> dose.free_symbols {AMT}
Methods Documentation