https://github.com/tidepool-org/pyloopkit
A set of Python tools for building closed-loop insulin delivery apps (Python port of LoopKit)
https://github.com/tidepool-org/pyloopkit
Last synced: 23 days ago
JSON representation
A set of Python tools for building closed-loop insulin delivery apps (Python port of LoopKit)
- Host: GitHub
- URL: https://github.com/tidepool-org/pyloopkit
- Owner: tidepool-org
- License: bsd-2-clause
- Created: 2019-06-12T20:33:40.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-12-10T18:24:22.000Z (5 months ago)
- Last Synced: 2025-03-16T14:19:25.949Z (about 1 month ago)
- Language: HTML
- Size: 4.82 MB
- Stars: 7
- Watchers: 17
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyLoopKit
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](https://github.com/tidepool-org/Loop/tree/8c1dfdba38fbf6588b07cee995a8b28fcf80ef69)
[Link of Tidepool LoopKit repository version used for algorithm](https://github.com/tidepool-org/LoopKit/tree/57a9f2ba65ae3765ef7baafe66b883e654e08391)
# To use this project
## Please review [the documentation](pyloopkit/docs/pyloopkit_documentation.md) for usage instructions, input data requirements, and other important details.### To recreate the Virtual Environment
1. This environment was developed with Anaconda. You'll need to install [Miniconda](https://conda.io/miniconda.html) or [Anaconda](https://anaconda-installer.readthedocs.io/en/latest/) for your platform.
2. In a terminal, navigate to the directory where the environment.yml
is located (likely in PyLoopKit/pyloopkit folder).
3. 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.### To use the Virtual Environment
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.
### To create the PyLoopKit package
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.### Running the unittests
To run PyLoopKit's unit tests, run `python3 -m unittest discover` within your PyLoopKit repo