Skip to content

Commit d8b56ff

Browse files
committed
Fix format to fit flake8
1 parent 4c12963 commit d8b56ff

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed
File renamed without changes.

rl_algorithms/example/custom_agent.py renamed to example/custom_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This is example for using custom agent.
44
In this example, custom agent use state as exponential.
55
You can customize any function e.g) select_aciton, train ... etc.
6-
6+
77
To use custom agent just decorate class to build and import in main function.
88
99
- Author: Jiseong Han
File renamed without changes.
File renamed without changes.

rl_algorithms/example/run_custom_env.py renamed to example/run_custom_env.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,13 @@ def main(env):
168168

169169

170170
if __name__ == "__main__":
171-
###############################################################################################
171+
###################################################################################
172172
# To use custom agent and learner, import custom agent and learner.
173-
from custom_agent import CustomDQN
174-
from custom_learner import CustomDQNLearner
173+
#
174+
from custom_agent import CustomDQN # noqa: F401
175+
from custom_learner import CustomDQNLearner # noqa: F401
175176

176177
# Declare custom environment here.
177178
env = CustomEnv()
178-
###############################################################################################
179+
###################################################################################
179180
main(env)

0 commit comments

Comments
 (0)