Skip to content

Commit

Permalink
Added scenario year to vehicle type choice constants as workaround to…
Browse files Browse the repository at this point in the history
… apparent issue with global constants not being accessible for that model
  • Loading branch information
JoeJimFlood committed May 17, 2024
1 parent de93ab3 commit 4731ab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/asim/configs/resident/vehicle_type_choice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,4 @@ CONSTANTS:
CHARGERS_PER_CAP: 0.00034592
# chargers per cap used in vehicle type model estimation
# CHARGERS_PER_CAP: 0.000721205
scenarioYear: 2022
1 change: 1 addition & 0 deletions src/asim/scripts/scenarioManagement/scenManagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@

doc = util.open_yaml(_join(configs_dir, 'resident', 'vehicle_type_choice.yaml'))
doc['FLEET_YEAR'] = int(scenYear)
doc['CONSTANTS']['scenarioYear'] = int(scenYear)
util.write_yaml(_join(configs_dir, 'resident', 'vehicle_type_choice.yaml'), doc)

sandag_abm_prop = util.load_properties(sandag_abm_prop_dir)
Expand Down

0 comments on commit 4731ab7

Please sign in to comment.