Skip to content

Commit

Permalink
Get AssignmentPeriod dist unit cost from zonedata (#334)
Browse files Browse the repository at this point in the history
* Get AssignmentPeriod dist unit cost from zonedata

* Currently used in AssignmentPeriod (not EmmeAssignment)
  • Loading branch information
attesn authored Jun 28, 2021
1 parent bc63603 commit 7fac538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Scripts/assignment/emme_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ def __init__(self, emme_context, first_scenario_id,
tp, first_scenario_id + i + 2, first_scenario_id,
emme_context, save_matrices=save_matrices)
for i, tp in enumerate(["aht", "pt", "iht"])]
# default value for dist, modelsystem sets new from zonedata
self.dist_unit_cost = param.dist_unit_cost
self.day_scenario = self.emme_project.modeller.emmebank.scenario(
first_scenario_id + 1)

Expand Down
3 changes: 2 additions & 1 deletion Scripts/modelsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def __init__(self, zone_data_path, base_zone_data_path, base_matrices_path,
zone_data_path, self.zone_numbers)

# Set dist unit cost from zonedata
self.ass_model.dist_unit_cost = self.zdata_forecast.car_dist_cost
for ap in self.ass_model.assignment_periods:
ap.dist_unit_cost = self.zdata_forecast.car_dist_cost

# Output data
self.resultmatrices = MatrixData(
Expand Down

0 comments on commit 7fac538

Please sign in to comment.