Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.42 KB

README.md

File metadata and controls

51 lines (35 loc) · 1.42 KB

rl-insulin-pump

Creating RL Agents for simglucose/PadovaT1D simulator.

Getting Started
  1. Set up virtual environment
python -m venv env
source env/bin/activate  # On Windows: env\Scripts\activate
  1. Install dependencies
pip install -r requirements.txt
  1. Install simglucose in editable mode:
cd simglucose
pip install -e . --config-settings editable_mode=compat
cd ..
  1. Run scripts from root dir
python -m src.main

Installing simglucose in editable mode within the project directory allows for direct imports and potential modifications to the source code. This gives us much greater control for customization and enables effective debugging.

Managing the simglucose Fork

This repository includes simglucose as a git subtree. If you need to update or push changes to the simglucose fork, use the following commands in the root directory.

Pulling Updates from the Subtree

If the upstream simglucose repository has updates, you can pull them into the subtree:

git subtree pull --prefix=simglucose https://github.com/Blood-Glucose-Control/simglucose.git master --squash
Pushing Changes to the Subtree

To push changes made to simglucose back to the forked repository:

git subtree push --prefix=simglucose https://github.com/Blood-Glucose-Control/simglucose.git master