Skip to content
Snippets Groups Projects
Commit 67ec235e authored by Egli Adrian (IT-SCI-API-PFI)'s avatar Egli Adrian (IT-SCI-API-PFI)
Browse files

flake8 conformability

parent 39de57c1
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ import random
import numpy as np
from flatland.envs.generators import random_rail_generator, complex_rail_generator
from flatland.envs.generators import random_rail_generator
from flatland.envs.observations import TreeObsForRailEnv
from flatland.envs.rail_env import RailEnv
from flatland.utils.rendertools import RenderTool
......
......@@ -107,7 +107,6 @@ def test_rail_environment_single_agent():
if prev_pos != pos:
valid_active_actions_done += 1
# After 6 movements on this railway network, the train should be back
# to its original height on the map.
assert (initial_pos[0] == agent.position[0])
......@@ -124,8 +123,10 @@ def test_rail_environment_single_agent():
_, _, dones, _ = rail_env.step({0: action})
done = dones['__all__']
test_rail_environment_single_agent()
def test_dead_end():
transitions = Grid4Transitions([])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment