Skip to content

Commit

Permalink
Fix random init state does not work issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jxx123 committed May 17, 2024
1 parent 4032e30 commit a587730
Showing 1 changed file with 1 addition and 1 deletion.
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 a587730

Please sign in to comment.