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

tests

parent a7cf0af3
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ from flatland.utils.rendertools import RenderTool
import numpy as np
def test_realistic_rail_generator():
for test_loop in range(20):
for test_loop in range(5):
num_agents = np.random.randint(10,30)
env = RailEnv(width=np.random.randint(40,80),
height=np.random.randint(10,20),
......@@ -18,7 +18,7 @@ def test_realistic_rail_generator():
# reset to initialize agents_static
env_renderer = RenderTool(env, gl="PILSVG", )
env_renderer.render_env(show=True, show_observations=True, show_predictions=False)
time.sleep(1)
time.sleep(2)
env_renderer.close_window()
def test_sparse_rail_generator():
......
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