Skip to content

Commit

Permalink
Fix greater than
Browse files Browse the repository at this point in the history
  • Loading branch information
West Jens authored and West Jens committed Sep 1, 2021
1 parent 8036b11 commit 2b95ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/assignment/assignment_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def assign(self, matrices, iteration):
# (dist and cost zero if path not found)
for mtx_type in ("cost", "dist"):
for mtx_class in mtxs[mtx_type]:
path_not_found = mtxs["time"][mtx_class] >= 999999
path_not_found = mtxs["time"][mtx_class] > 999999
mtxs[mtx_type][mtx_class][path_not_found] = 999999
# adjust impedance
mtxs["time"]["bike"] = mtxs["time"]["bike"].clip(None, 9999.)
Expand Down

0 comments on commit 2b95ef3

Please sign in to comment.