From 6367da500bbf30414f620cac2f31b7a2c75ae101 Mon Sep 17 00:00:00 2001 From: James Vaughan Date: Thu, 25 Aug 2022 14:09:08 -0400 Subject: [PATCH] Fix for Transit Background. (#193) --- TMGToolbox/src/XTMF_internal/multi_class_road_assignment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMGToolbox/src/XTMF_internal/multi_class_road_assignment.py b/TMGToolbox/src/XTMF_internal/multi_class_road_assignment.py index f9e9c86d..5c018b9a 100644 --- a/TMGToolbox/src/XTMF_internal/multi_class_road_assignment.py +++ b/TMGToolbox/src/XTMF_internal/multi_class_road_assignment.py @@ -627,7 +627,7 @@ def process_term(term): return [process_term(x) for x in range_str.split(',')] def _getTransitBGSpec(self): - ttf_terms = str.join(" + ", ["(ttf >="+str(x[0])+" * ttf <= "+str(x[1])+")" for x in self.on_road_ttfs]) + ttf_terms = str.join(" + ", ["((ttf >="+str(x[0])+") * (ttf <= "+str(x[1])+"))" for x in self.on_road_ttfs]) return { "result": "@tvph", "expression": "(60 / hdw) * (vauteq) * ("+ttf_terms+")",