From 4b64873a180f40003c3e9472bfeaf38604215412 Mon Sep 17 00:00:00 2001 From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch> Date: Mon, 16 Sep 2019 16:30:28 +0200 Subject: [PATCH] refactoring --- examples/Simple_Realistic_Railway_Generator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/Simple_Realistic_Railway_Generator.py b/examples/Simple_Realistic_Railway_Generator.py index df784bd0..1196dfeb 100644 --- a/examples/Simple_Realistic_Railway_Generator.py +++ b/examples/Simple_Realistic_Railway_Generator.py @@ -234,7 +234,9 @@ def realistic_rail_generator(num_cities=5, end_nodes = e_nodes[graphids[i + 1]] start_node = start_nodes[np.random.choice(len(start_nodes))] end_node = end_nodes[np.random.choice(len(end_nodes))] - # TODO : removing, what the hell is that + # TODO : removing, what the hell is going on, why we have to set rail_array -> transition to zero + # TODO : before we can call connect_rail. If we don't reset the transistion to zero -> no rail + # TODO : will be generated. rail_array[start_node] = 0 rail_array[end_node] = 0 connection = connect_rail(rail_trans, rail_array, start_node, end_node) -- GitLab