The purpose of this project is providing metabolism modeling tools as a stand alone library for use in other Tidepool data science projects.
- Time Series
- Python3
This code was born out of the iCGM risk analysis plan for Loop FDA submission. Since it will likely be useful to have modeled carb/insulin/etc. in a variety of contexts it has been refactored and put in this repo for easier use and testing.
- Clone this repo (for help see the github tutorial).
- Import the model of interest and run. Example:
from tidepool_data_science_models.models.simple_metabolism_model import SimpleMetabolismModel
smm = SimpleMetabolismModel(
insulin_sensitivity_factor=isf,
carb_insulin_ratio=cir,
insulin_model_name="palerm",
carb_model_name="cescon",
)
(
net_change_in_bg_smm,
t_5min_smm,
carb_amount_smm,
insulin_amount_smm,
iob_5min_smm,
) = smm.run(num_hours=8, carb_amount=0.0, insulin_amount=1.0)