Commit 53f27b77 authored by Erik Nygren's avatar Erik Nygren 🚅
Browse files

removed symmetrical switch from fix function --> Messed up consistency rules

parent cbfb2cd3
Pipeline #2212 failed with stages
in 60 minutes
......@@ -36,12 +36,12 @@ env = RailEnv(width=50,
min_node_dist=10, # Minimal distance of nodes
node_radius=4, # Proximity of stations to city center
seed=0, # Random seed
grid_mode=True,
grid_mode=False,
max_inter_city_rails=2,
tracks_in_city=4,
),
schedule_generator=sparse_schedule_generator(),
number_of_agents=10,
number_of_agents=100,
stochastic_data=stochastic_data, # Malfunction data generator
obs_builder_object=GlobalObsForRailEnv())
......
......@@ -514,7 +514,7 @@ class GridTransitionMap(TransitionMap):
simple_switch_west_south = transitions.rotate_transition(cells[2], 270)
symmetrical = cells[6]
double_slip = cells[5]
three_way_transitions = [simple_switch_east_south, simple_switch_west_south, symmetrical]
three_way_transitions = [simple_switch_east_south, simple_switch_west_south]
# loop over available outbound directions (indices) for rcPos
self.set_transitions(rcPos, 0)
......
......@@ -780,7 +780,7 @@ def sparse_rail_generator(num_cities=5, min_node_dist=20, node_radius=2,
city_boarder = _city_boarder(node_positions[current_city], node_radius)
current_track = connect_cities(rail_trans, grid_map, source, target, city_boarder)
if target in outer_connection_points[current_city] and source in \
outer_connection_points[current_city]:
outer_connection_points[current_city] and len(through_path_cells[current_city]) < 1:
through_path_cells[current_city].extend(current_track)
else:
continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment