diff --git a/pip_release.sh b/pip_release.sh new file mode 100644 index 00000000..ab8ca6d1 --- /dev/null +++ b/pip_release.sh @@ -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 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 42aa8fb0..c2495120 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/setup.py b/setup.py index 1a61fe61..81454a30 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/simglucose/simulation/env.py b/simglucose/simulation/env.py index 7302076e..45a43cb6 100644 --- a/simglucose/simulation/env.py +++ b/simglucose/simulation/env.py @@ -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(