From 289c65a375f0b05583c1d27cd1ca3ded8e82a1ad Mon Sep 17 00:00:00 2001
From: rschoene <rene.schoene@tu-dresden.de>
Date: Fri, 30 Oct 2015 11:13:29 +0100
Subject: [PATCH] Fixed distinction-of-changes for attribute metrics.

---
 ilp_measurement.py | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/ilp_measurement.py b/ilp_measurement.py
index 186aa21..697ae1b 100644
--- a/ilp_measurement.py
+++ b/ilp_measurement.py
@@ -337,6 +337,14 @@ def distinction_of_changes():
             f, change, target))
         maybe_insert_dummy(target)
 
+        # att totals
+        f = 'profiling/all-att-results.csv'
+        target = 'profiling/splitted/att_{0}.csv'.format(change)
+        local_quiet('head -n 1 profiling/att-totals.csv > {}'.format(target))
+        local_quiet('tail -n +2 {0} | grep -e ^{1} | cat >> {2}'.format(
+            f, change, target))
+        maybe_insert_dummy(target)
+
         for strategy in d['strategies']:
             sys.stdout.write('.')
             # gen
@@ -347,13 +355,6 @@ def distinction_of_changes():
                 local_quiet('tail -n +2 {0} | grep -e {1} | grep {2} | cat >> {3}'.format(
                     f, change, get_strategy_pattern(strategy), gen_target))
                 maybe_insert_dummy(gen_target)
-            # att totals
-            f = 'profiling/all-att-results.csv'
-            target = 'profiling/splitted/att_{0}_{1}.csv'.format(change, strategy)
-            local_quiet('head -n 1 profiling/att-totals.csv > {}'.format(target))
-            local_quiet('tail -n +2 {0} | grep -e {1} | grep {2} | cat >> {3}'.format(
-                f, change, get_strategy_pattern(strategy), target))
-            maybe_insert_dummy(target)
 
 @task(name = 'prepare-noncached')
 def prepare_noncached():
-- 
GitLab