aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/compare8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/compare b/bin/compare
index e911f4a6c3..f723c083c1 100755
--- a/bin/compare
+++ b/bin/compare
@@ -9,9 +9,11 @@ a,b = {},{}
for (path, d) in [(sys.argv[1], a), (sys.argv[2], b)]:
for line in open(path):
try:
- tokens = line.split()
- samples = tokens[:-1]
- label = tokens[-1]
+ tokens = line.split()
+ if tokens[0] != "Samples:":
+ continue
+ samples = tokens[1:-1]
+ label = tokens[-1]
d[label] = map(float, samples)
except:
pass