Skip to content

Commit c68089e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2d914f9 commit c68089e

File tree

9 files changed

+19
-10
lines changed

9 files changed

+19
-10
lines changed

neodroid/entry_points/cli.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def run(self, env_name: str) -> None:
6262
@staticmethod
6363
def fetch(env_name: str) -> Path:
6464
"""
65-
Fetches a remotely stored environment with the specified name to local storage"""
65+
Fetches a remotely stored environment with the specified name to local storage
66+
"""
6667
exe_path = download_environment(
6768
env_name, path_to_executables_directory=DEFAULT_ENVIRONMENTS_PATH
6869
)
@@ -71,7 +72,8 @@ def fetch(env_name: str) -> Path:
7172

7273
def install(self, env_name: str) -> Path:
7374
"""
74-
Fetches a remotely stored environment with the specified name to local storage"""
75+
Fetches a remotely stored environment with the specified name to local storage
76+
"""
7577
return self.fetch(env_name)
7678

7779
@staticmethod
@@ -85,7 +87,8 @@ def remove(env_name: str) -> None:
8587

8688
def update(self, env_name: str) -> None:
8789
"""
88-
Updates, fetches environment with the specified name again and replaces the previous version if present"""
90+
Updates, fetches environment with the specified name again and replaces the previous version if present
91+
"""
8992
if os.path.exists(DEFAULT_ENVIRONMENTS_PATH):
9093
self.remove(env_name)
9194
exe_path = self.fetch(env_name)

neodroid/environments/python_environment/non_neodroidian_environments/blackjack.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
============================================================
3232
3333
"""
34+
3435
import random
3536

3637
import numpy

neodroid/environments/python_environment/non_neodroidian_environments/multi_armed_bandit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
= Q(a;k) + 1/(k+1) * (R(a) - Q(a;k))
3030
3131
"""
32+
3233
import numpy
3334
from matplotlib import pyplot
3435

neodroid/factories/configuration_reactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
def verify_configuration_reactions(
2222
*,
2323
input_reactions,
24-
environment_descriptions
24+
environment_descriptions,
2525
#: Mapping[str, EnvironmentDescription]
2626
):
2727
"""

neodroid/utilities/specifications/unity_specifications/motion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def __init__(self, actor_name: str, actuator_name: str, strength: float):
1515
1616
:param actor_name:
1717
:param actuator_name:
18-
:param strength: Strength has a possible direction given by the sign of the float"""
18+
:param strength: Strength has a possible direction given by the sign of the float
19+
"""
1920
self._actor_name = actor_name
2021
self._actuator_name = actuator_name
2122
self._strength = strength

neodroid/wrappers/curriculum_wrapper/curriculum_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def generate_trajectory_from_configuration(
5353
configure_params = ReactionParameters(
5454
reset=True,
5555
terminable=False,
56-
configure=True
56+
configure=True,
5757
# ,episode_count=False
5858
)
5959

@@ -63,7 +63,7 @@ def generate_trajectory_from_configuration(
6363

6464
non_terminable_params = ReactionParameters(
6565
step=True,
66-
terminable=False
66+
terminable=False,
6767
# ,
6868
# episode_count=False
6969
)

samples/experimental/observation_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def main():
2121
connect_to_running=True
2222
) as env:
2323
with tqdm(env, leave=False) as observation_session:
24-
for (observation, reward, terminated, info) in observation_session:
24+
for observation, reward, terminated, info in observation_session:
2525
frame_i += 1
2626

2727
if not diverged and frame_i != info.frame_number:

samples/gui_client/gui_components/reaction_box.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ def on_step_button(self, value):
4848
str(self.motor_1.motor_input.text),
4949
float(self.motor_1.motor_slider.value),
5050
),
51-
(str(self.motor_2.motor_input.text), float(self.motor_2.motor_slider.value))
51+
(
52+
str(self.motor_2.motor_input.text),
53+
float(self.motor_2.motor_slider.value),
54+
),
5255
# (str(self.motor_3.motor_input.text),
5356
# float(self.motor_3.motor_slider.value)),
5457
# (str(self.motor_4.motor_input.text),

samples/gui_client/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def update_callback(state):
4747
def on_step_callback(actor_name, slider_values):
4848
motions = [
4949
Motion(str(actor_name), str(slider_values[0][0]), slider_values[0][1]),
50-
Motion(str(actor_name), str(slider_values[1][0]), slider_values[1][1])
50+
Motion(str(actor_name), str(slider_values[1][0]), slider_values[1][1]),
5151
# Motion(str(actor_name), str(slider_values[2][0]), slider_values[2][1]),
5252
# Motion(str(actor_name), str(slider_values[3][0]), slider_values[3][1])
5353
]

0 commit comments

Comments
 (0)