Skip to content

Commit c5f27c8

Browse files
Merge branch 'main' into improved_linting
2 parents d124254 + d286cea commit c5f27c8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ license = "MIT"
88
[tool.poetry.dependencies]
99
python = "^3.10"
1010
matplotlib = "^3.5.1"
11-
Pillow = "^9.0.0"
1211
munch = "^2.5.0"
1312
PyYAML = "^6.0"
1413
imageio = "^2.14.1"
1514
dict-deep = "^4.1.2"
1615
scikit-optimize = "^0.9.0"
16+
scikit-learn = "^1.3.0"
1717
gymnasium = "^0.28"
1818
torch = "^1.10.2"
1919
gpytorch = "^1.6.0"

safe_control_gym/controllers/mpc/gp_mpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ def learn(self,
713713
self.train_iterations + validation_iterations,
714714
random_state=self.seed)
715715
input_samples = np.array(input_samples) # not being used currently
716-
seeds = self.env.np_random.randint(0, 99999, size=self.train_iterations + validation_iterations)
716+
seeds = self.env.np_random.integers(0, 99999, size=self.train_iterations + validation_iterations)
717717
for i in range(self.train_iterations + validation_iterations):
718718
# For random initial state training.
719719
# init_state = init_state_samples[i,:]

safe_control_gym/envs/disturbances.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def reset(self,
100100
env
101101
):
102102
if self.step_offset is None:
103-
self.current_step_offset = self.np_random.randint(self.max_step)
103+
self.current_step_offset = self.np_random.integers(self.max_step)
104104
else:
105105
self.current_step_offset = self.step_offset
106106
self.current_peak_step = int(self.current_step_offset + self.duration / 2)
@@ -146,7 +146,7 @@ def reset(self,
146146
env
147147
):
148148
if self.step_offset is None:
149-
self.current_step_offset = self.np_random.randint(self.max_step)
149+
self.current_step_offset = self.np_random.integers(self.max_step)
150150
else:
151151
self.current_step_offset = self.step_offset
152152

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
version='2.0.0',
55
install_requires=[
66
'matplotlib',
7-
'Pillow',
87
'munch',
98
'pyyaml',
109
'imageio',
1110
'dict-deep',
1211
'scikit-optimize',
12+
'scikit-learn',
1313
'gymnasium',
1414
'torch',
1515
'gpytorch',

0 commit comments

Comments
 (0)