Skip to content

Commit

Permalink
answermetrics parse fix for X1,X2 format
Browse files Browse the repository at this point in the history
  • Loading branch information
krivard committed Feb 5, 2015
1 parent 661a179 commit b79266a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/answermetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#################### parsing input files

def answerWithIntVars(query):
"""Convert from format p(foo,Y-1,Z-2) to p(foo,-1,-2)."""
return re.sub(r"[_A-Z]\w*\-","-",query)
"""Convert from format p(foo,X1,X2) to p(foo,-1,-2)."""
return re.sub(r"[_A-Z]\w*([0-9]+)",r"-\1",query)

def queryWithIntVars(query):
"""Convert from format p(foo,Y,Z) to p(foo,-1,-2)."""
Expand Down

0 comments on commit b79266a

Please sign in to comment.