A set of Python tools for building closed-loop insulin delivery apps (Python port of LoopKit)
Link to Tidepool Loop repository version used for algorithm
Link of Tidepool LoopKit repository version used for algorithm
Please review the documentation for usage instructions, input data requirements, and other important details.
- This environment was developed with Anaconda. You'll need to install Miniconda or Anaconda for your platform.
- In a terminal, navigate to the directory where the environment.yml is located (likely in PyLoopKit/pyloopkit folder).
- Run
conda env create
; this will download all of the package dependencies and install them in a virtual environment named py-loop. PLEASE NOTE: this may take up to 30 minutes to complete.
In Bash run source activate py-loop
, or in the Anaconda Prompt
run conda activate py-loop
to start the environment.
Run deactivate
to stop the environment.
If you want to install a version of the PyLoopKit package based on the PyLoopKit on your local machine, run python3 setup.py install
within your PyLoopKit repo to call the setup script and install the package. You'll likely want to do this within the py-loop
environment.
To run PyLoopKit's unit tests, run python3 -m unittest discover
within your PyLoopKit repo