Skip to content

Commit

Permalink
modify tests to support emme strategy analysis and congestion time ma…
Browse files Browse the repository at this point in the history
…trices
  • Loading branch information
jalovaj2 committed Jan 13, 2025
1 parent b5fc9aa commit 6fa1486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Scripts/assignment/emme_bindings/mock_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ def matrix_results(self, *args, **kwargs):
def network_results(self, *args, **kwargs):
pass

def strategy_analysis(self, *args, **kwargs):
pass


Modeller = namedtuple("Modeller", "emmebank")

Expand Down
2 changes: 1 addition & 1 deletion Scripts/assignment/mock_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def assign(self,
mtx[ass_class] = matrices[ass_class]
log.info("Saved demand matrices for " + str(self.name))
mtxs = {mtx_type: self._get_matrices(mtx_type)
for mtx_type in ("time", "cost", "dist")}
for mtx_type in ("time", "cost", "dist", "congest_time")}
for ass_cl in ("transit_work", "transit_leisure"):
mtxs["time"][ass_cl] = mtxs["time"]["transit_uncongested"]
if iteration != "last":
Expand Down

0 comments on commit 6fa1486

Please sign in to comment.