From 4c23011e3d3c2d8e692c0cd48540fdf6bc53ee68 Mon Sep 17 00:00:00 2001
From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch>
Date: Tue, 17 Sep 2019 16:30:10 +0200
Subject: [PATCH] removed print -> clean up code

---
 examples/Simple_Realistic_Railway_Generator.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/examples/Simple_Realistic_Railway_Generator.py b/examples/Simple_Realistic_Railway_Generator.py
index 3817c50d..e3b72ad6 100644
--- a/examples/Simple_Realistic_Railway_Generator.py
+++ b/examples/Simple_Realistic_Railway_Generator.py
@@ -168,7 +168,6 @@ def realistic_rail_generator(num_cities=5,
                                         x = len(track) - 1
                                 end_node = track[x]
                                 connection = connect_rail(rail_trans, grid_map, start_node, end_node)
-                                print(start_node, end_node, "-->", connection)
                                 if len(connection) == 0:
                                     if print_out_info:
                                         print("create_switches_at_stations : connect_rail -> no path found")
@@ -482,8 +481,8 @@ if os.path.exists("./../render_output/"):
     for itrials in range(1000):
         print(itrials, "generate new city")
         np.random.seed(itrials)
-        env = RailEnv(width=40 + np.random.choice(100),
-                      height=40 + np.random.choice(100),
+        env = RailEnv(width=20 + np.random.choice(100),
+                      height=20 + np.random.choice(100),
                       rail_generator=realistic_rail_generator(num_cities=5 + np.random.choice(10),
                                                               city_size=10 + np.random.choice(10),
                                                               allowed_rotation_angles=np.arange(-180, 180, 30),
-- 
GitLab