Skip to content

Commit

Permalink
Update for 2024.3.1 patch (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzhang81 authored Oct 21, 2024
1 parent 1c753b1 commit 9bb5269
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion program/ftot_postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,9 @@ def make_optimal_scenario_results_db(the_scenario, logger):
db_cur = db_con.execute(sql_mode_commodity)
mode_and_commodity_list = db_cur.fetchall()

attributes_dict = ftot_supporting_gis.get_commodity_vehicle_attributes_dict(the_scenario, logger)
attributes_dict = ftot_supporting_gis.get_commodity_vehicle_attributes_dict(the_scenario, logger)

with sqlite3.connect(the_scenario.main_db) as db_con:

logger.debug("start: summarize vehicle loads")
for row in mode_and_commodity_list:
Expand Down
6 changes: 4 additions & 2 deletions program/ftot_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,10 @@ def generate_artificial_link_summary(timestamp_directory, the_scenario, logger):
db_cur = db_con.execute(sql_mode_commodity)
mode_and_commodity_list = db_cur.fetchall()

# use method from ftot_supporting_gis
attributes_dict = get_commodity_vehicle_attributes_dict(the_scenario, logger)
# use method from ftot_supporting_gis
attributes_dict = get_commodity_vehicle_attributes_dict(the_scenario, logger)

with sqlite3.connect(the_scenario.main_db) as db_con:

# CO2 on artificial links only
logger.debug("start: summarize emissions for artificial links")
Expand Down

0 comments on commit 9bb5269

Please sign in to comment.