Skip to content

Commit

Permalink
Fix for Transit Background. (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesVaughan authored Aug 25, 2022
1 parent 3eda4ea commit 6367da5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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+")",
Expand Down

0 comments on commit 6367da5

Please sign in to comment.