Skip to content

Commit

Permalink
simulator indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiaPsarou committed Nov 18, 2024
1 parent 8547b70 commit ca7dffe
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions RouteRL/environment/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def add_vehice(self, act_dict: dict) -> None:
Parameters:
- act_dict (dict): A dictionary containing key vehicle attributes.
"""

route_id = self.route_id_cache.setdefault((act_dict[kc.AGENT_ORIGIN], act_dict[kc.AGENT_DESTINATION], act_dict[kc.ACTION]), \
Expand All @@ -119,11 +119,10 @@ def step(self) -> tuple:
Advances the SUMO simulation by one timestep and retrieves information about vehicle arrivals and detector data.
Returns:
- tuple: A tuple containing:
- self.timestep (int): The current simulation timestep.
- arrivals (list): List of vehicle IDs that arrived at their destinations during the current timestep.
- self.det_dict (list): The current detector data (currently an empty list).
tuple: A tuple containing:
self.timestep (int): The current simulation timestep.
arrivals (list): List of vehicle IDs that arrived at their destinations during the current timestep.
self.det_dict (list): The current detector data (currently an empty list).
"""

arrivals = self.sumo_connection.simulation.getArrivedIDList()
Expand Down

0 comments on commit ca7dffe

Please sign in to comment.