Skip to content

Commit 6367da5

Browse files
authored
Fix for Transit Background. (#193)
1 parent 3eda4ea commit 6367da5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TMGToolbox/src/XTMF_internal/multi_class_road_assignment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def process_term(term):
627627
return [process_term(x) for x in range_str.split(',')]
628628

629629
def _getTransitBGSpec(self):
630-
ttf_terms = str.join(" + ", ["(ttf >="+str(x[0])+" * ttf <= "+str(x[1])+")" for x in self.on_road_ttfs])
630+
ttf_terms = str.join(" + ", ["((ttf >="+str(x[0])+") * (ttf <= "+str(x[1])+"))" for x in self.on_road_ttfs])
631631
return {
632632
"result": "@tvph",
633633
"expression": "(60 / hdw) * (vauteq) * ("+ttf_terms+")",

0 commit comments

Comments
 (0)