Creating RL Agents for simglucose/PadovaT1D simulator.
- Set up virtual environment
python -m venv env
source env/bin/activate # On Windows: env\Scripts\activate
- Install dependencies
pip install -r requirements.txt
- Install simglucose in editable mode:
cd simglucose
pip install -e . --config-settings editable_mode=compat
cd ..
- 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.
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.
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
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