diff --git a/smarts/core/local_traffic_provider.py b/smarts/core/local_traffic_provider.py index 1d6c5201fb..ae014be94d 100644 --- a/smarts/core/local_traffic_provider.py +++ b/smarts/core/local_traffic_provider.py @@ -81,7 +81,6 @@ class LocalTrafficProvider(TrafficProvider): def __init__(self): self._logger = logging.getLogger(self.__class__.__name__) - self._logger.setLevel(logging.DEBUG) self._sim = None self._scenario = None self.road_map: RoadMap = None diff --git a/smarts/core/sumo_road_network.py b/smarts/core/sumo_road_network.py index e0a8901052..7f42fac40b 100644 --- a/smarts/core/sumo_road_network.py +++ b/smarts/core/sumo_road_network.py @@ -132,7 +132,9 @@ def nearest_roads(self, point: Point, radius: float): x = point[0] y = point[1] r = radius - edges: List[sumolib.net.edge.Edge] = self._graph.getEdges() + edges: List[sumolib.net.edge.Edge] = sorted( + self._graph.getEdges(), key=lambda e: e.getID() + ) if self._rtree_roads is None: self._rtree_roads = self._init_rtree(edges) near_roads: List[RoadMap.Road] = [] diff --git a/smarts/env/tests/test_determinism.py b/smarts/env/tests/test_determinism.py index 13a85e1e9b..1a0ce53f66 100644 --- a/smarts/env/tests/test_determinism.py +++ b/smarts/env/tests/test_determinism.py @@ -140,7 +140,7 @@ def test_short_determinism(): def test_long_determinism(): max_steps_per_episode = 55000 episode_count = 1 - capture_step = 13750 + capture_step = 3750 scenarios = "scenarios/sumo/intersections/2lane" determinism( agent_spec(max_steps_per_episode), scenarios, episode_count, capture_step