Skip to content

Commit

Permalink
minjung priority light control
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
mschrader15 committed May 2, 2024
1 parent 5e79804 commit 07176cc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions sumo_pipelines/blocks/emissions/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class EmissionsTableFuelTotalConfig:
filter_polygon: Any = field(default=None)
average_speed: Any = field(default=None)
average_travel_time: Any = field(default=None)
mean_speed: Any = field(default=None)


@dataclass
Expand Down
1 change: 1 addition & 0 deletions sumo_pipelines/blocks/emissions/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,4 @@ def emissions_table_to_total(
) # g/veh -> L/veh
config.average_speed = float(df["mean_speed"][0])
config.average_travel_time = float(df["mean_travel_time"][0])
config.mean_speed = float(df["mean_speed"][0])
2 changes: 1 addition & 1 deletion sumo_pipelines/optimization/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def initalize_ray(smoke_test: bool):

def run_optimization_core(config_obj: OptimizationConfig, smoke_test: bool):
# check that GUI is off if we aren't in smoke test mode
if not smoke_test and config_obj.Blocks.SimulationConfig.gui:
if not smoke_test and config_obj.Blocks.get("SimulationConfig", False):
print("Turning off GUI for calibration.")
config_obj.Blocks.SimulationConfig.gui = False

Expand Down
4 changes: 2 additions & 2 deletions sumo_pipelines/utils/nema_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,8 @@ def add_params_to_xml(

tl.update_coordinate_splits(
{
2: 0.5764271155153771,
6: 0.85,
2: 0.76666666,
6: 0.63333333,
}
)

Expand Down

0 comments on commit 07176cc

Please sign in to comment.