From a587730c9b1654d1ce9993e80971b290dfedfb7a Mon Sep 17 00:00:00 2001 From: Jinyu Xie Date: Thu, 16 May 2024 22:11:52 -0700 Subject: [PATCH 1/2] Fix random init state does not work issue --- simglucose/patient/t1dpatient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simglucose/patient/t1dpatient.py b/simglucose/patient/t1dpatient.py index b170fc8b..de75c925 100644 --- a/simglucose/patient/t1dpatient.py +++ b/simglucose/patient/t1dpatient.py @@ -249,7 +249,7 @@ def reset(self): Reset the patient state to default intial state """ if self._init_state is None: - self.init_state = self._params.iloc[2:15] + self.init_state = np.copy(self._params.iloc[2:15].values) else: self.init_state = self._init_state From d503ba64caa9c0dfbc449c9dfb72072c15ab0db9 Mon Sep 17 00:00:00 2001 From: Jinyu Xie Date: Thu, 16 May 2024 22:17:50 -0700 Subject: [PATCH 2/2] update version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e44e3db4..a1936fb5 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="simglucose", - version="0.2.10", + version="0.2.11", 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",