Skip to content

Commit

Permalink
Merge pull request #83 from jxx123/fix_warning
Browse files Browse the repository at this point in the history
Fix random init state does not work issue
  • Loading branch information
jxx123 authored May 17, 2024
2 parents d4aff7a + d503ba6 commit 506bfea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion simglucose/patient/t1dpatient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 506bfea

Please sign in to comment.