Git Product home page Git Product logo

pyloopkit's Introduction

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

Link of Tidepool LoopKit repository version used for algorithm

To use this project

Please review the documentation 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 or Anaconda 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

pyloopkit's People

Contributors

novalegra avatar ps2 avatar ed-nykaza avatar rpwils avatar edengh avatar

pyloopkit's Issues

Optimize runtime

Optimize runtime by:

  • Vectorisation
  • Caching

Running a profiler on example_between_dates.py in the repo loop-model-scoring using ten days of data and calculating the penalties gives the following results in the profiler:

Function calls with highest call counts
Screenshot 2023-02-25 at 10 38 57

Function calls with highest total time from calls
Screenshot 2023-02-25 at 10 38 48

Function calls with highest own time from calls
Screenshot 2023-02-25 at 10 38 39

Call graph
loop-model-scoring73

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.