Skip to content

Commit

Permalink
Fix matrix list in mock assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
zptro committed Nov 26, 2024
1 parent 497f8bf commit 614f1c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Scripts/assignment/mock_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,9 @@ def _get_matrices(self,
Subtype (car_work/truck/inv_time/...) : numpy 2-d matrix
Matrix of the specified type
"""
matrix_list = [ass_class for ass_class in assignment_classes
if mtx_type in param.emme_matrices.get(ass_class, [])]
with self.matrices.open(
mtx_type, self.name, transport_classes=matrix_list) as mtx:
mtx_type, self.name, transport_classes=[]) as mtx:
matrix_list = set(assignment_classes) & set(mtx.matrix_list)
matrices = {mode: mtx[mode] for mode in matrix_list}
for mode in matrices:
if numpy.any(matrices[mode] > 1e10):
Expand Down

0 comments on commit 614f1c4

Please sign in to comment.