Skip to content

Commit

Permalink
filename assinged from command-line argument -f
Browse files Browse the repository at this point in the history
  • Loading branch information
brnorris03 committed Feb 19, 2015
1 parent a08b142 commit d970933
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/or2arff.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def readTuningLog(filename):
def convertToARFF(lines,besttol,fairtol,includetimes=False):
featuresre = re.compile(r'^(\[\'.*\'\])$')
datare = re.compile(r'^\(run \d+\) \| ({.*}?)$')
subdatare = re.compile(r'^({.*}), "transform_time": ([\d\.]+)}$')
datalist = []
mintime = sys.float_info.max
maxtime = 0
Expand Down Expand Up @@ -112,7 +111,6 @@ def writeToFile(buf, fname):
parser.print_usage(sys.stderr)
sys.exit(1)

fname = sys.argv[1]
lines = readTuningLog(fname)
buf = convertToARFF(lines,besttol,fairtol,includetimes)
writeToFile(buf,fname)
Expand Down

0 comments on commit d970933

Please sign in to comment.