Skip to content

Commit

Permalink
Relax the dependencies and termination condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jxx123 committed Oct 2, 2023
1 parent 8a9e530 commit 9530607
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 36 deletions.
4 changes: 4 additions & 0 deletions pip_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rm -r build dist simglucose.egg-info
python setup.py sdist bdist_wheel
# python -m build
twine upload dist/* -r jxx123
68 changes: 34 additions & 34 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
certifi==2023.7.22
charset-normalizer==3.2.0
cloudpickle==2.2.1
contourpy==1.1.0
cycler==0.11.0
dill==0.3.7
Farama-Notifications==0.0.4
fonttools==4.42.0
gym==0.9.4
gymnasium==0.29.1
idna==3.4
iniconfig==2.0.0
kiwisolver==1.4.4
matplotlib==3.7.2
multiprocess==0.70.15
numpy==1.25.2
packaging==23.1
pandas==2.0.3
pathos==0.3.1
Pillow==10.0.0
pluggy==1.2.0
pox==0.3.3
ppft==1.7.6.7
pyglet==2.0.9
pyparsing==3.0.9
pytest==7.4.0
python-dateutil==2.8.2
pytz==2023.3
requests==2.31.0
scipy==1.11.1
six==1.16.0
typing_extensions==4.7.1
tzdata==2023.3
urllib3==2.0.4
certifi~=2023.7.22
charset-normalizer~=3.2.0
cloudpickle~=2.2.1
contourpy~=1.1.0
cycler~=0.11.0
dill~=0.3.7
Farama-Notifications~=0.0.4
fonttools~=4.42.0
gym~=0.9.4
gymnasium~=0.29.1
idna~=3.4
iniconfig~=2.0.0
kiwisolver~=1.4.4
matplotlib~=3.7.2
multiprocess~=0.70.15
numpy~=1.25.0
packaging~=23.1
pandas~=2.0.3
pathos~=0.3.1
Pillow~=10.0.0
pluggy~=1.2.0
pox~=0.3.3
ppft~=1.7.6.7
pyglet~=2.0.9
pyparsing~=3.0.9
pytest~=7.4.0
python-dateutil~=2.8.2
pytz~=2023.3
requests~=2.31.0
scipy~=1.11.0
six~=1.16.0
typing_extensions~=4.7.1
tzdata~=2023.3
urllib3~=2.0.4
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def parse_requirements(filename):

setup(
name="simglucose",
version="0.2.4",
version="0.2.6",
description="A Type-1 Diabetes Simulator as a Reinforcement Learning Environment in OpenAI gym or rllab (python implementation of UVa/Padova Simulator)",
url="https://github.com/jxx123/simglucose",
author="Jinyu Xie",
Expand Down
2 changes: 1 addition & 1 deletion simglucose/simulation/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def step(self, action, reward_fun=risk_diff):
window_size = int(60 / self.sample_time)
BG_last_hour = self.CGM_hist[-window_size:]
reward = reward_fun(BG_last_hour)
done = BG < 70 or BG > 350
done = BG < 10 or BG > 600
obs = Observation(CGM=CGM)

return Step(
Expand Down

0 comments on commit 9530607

Please sign in to comment.