From 38c7f3f409e5987bfeceff07445c6fb84b2ff029 Mon Sep 17 00:00:00 2001 From: rschoene <rene.schoene@tu-dresden.de> Date: Wed, 2 Mar 2016 13:36:03 +0100 Subject: [PATCH] Adjust name to non-utf-8. --- constants.py | 2 +- fabfile.py | 2 +- fabric_workaround.py | 2 +- ilp_check.py | 2 +- ilp_measurement.py | 8 +++++++- ilp_test.py | 2 +- install.py | 2 +- properties.py | 2 +- sockets.py | 2 +- utils.py | 2 +- 10 files changed, 16 insertions(+), 10 deletions(-) diff --git a/constants.py b/constants.py index efad4d7..8e58491 100644 --- a/constants.py +++ b/constants.py @@ -1,7 +1,7 @@ # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. -# Author: R. Schöne +# Author: R. Schoene class Bin(object): def __init__(self, racr_bin, mquat_bin): self.racr_bin = racr_bin diff --git a/fabfile.py b/fabfile.py index 519a086..f146150 100644 --- a/fabfile.py +++ b/fabfile.py @@ -1,7 +1,7 @@ # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. -# Author: R. Schöne +# Author: R. Schoene import utils import ilp_test as test import ilp_measurement as measure diff --git a/fabric_workaround.py b/fabric_workaround.py index 492f827..ba24973 100644 --- a/fabric_workaround.py +++ b/fabric_workaround.py @@ -1,7 +1,7 @@ # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. -# Author: R. Schöne +# Author: R. Schoene import os, subprocess env = { 'local_wd' : None } diff --git a/ilp_check.py b/ilp_check.py index 5540842..45bb489 100644 --- a/ilp_check.py +++ b/ilp_check.py @@ -2,7 +2,7 @@ # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. -# Author: R. Schöne +# Author: R. Schoene import json, codecs try: diff --git a/ilp_measurement.py b/ilp_measurement.py index fdd1624..cea63bd 100644 --- a/ilp_measurement.py +++ b/ilp_measurement.py @@ -3,7 +3,7 @@ # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. -# Author: R. Schöne +# Author: R. Schoene import sys, re, os, csv, timeit, shutil, json, threading, time from datetime import datetime @@ -575,12 +575,18 @@ def incoporate_remote_measurements(archive, dryrun = False): utils.merge_csv(os.path.join('profiling', d, name), f, dryrun = dryrun) sys.stdout.write('\n') +first_file = True @task def avg(column, *files): """ Caclulate the average of the given column for all given files. """ def get_average_value(f): + global first_file with open(f) as fd: r = csv.reader(fd) + first_row = next(r) + if first_file: + print first_row[int(column)] + first_file = False values = [float(row[int(column)]) for row in r if not row[0].isalpha()] return sum(values) * 1.0 / len(values) print { f : get_average_value(f) for f in files } diff --git a/ilp_test.py b/ilp_test.py index 10496da..049b18b 100644 --- a/ilp_test.py +++ b/ilp_test.py @@ -3,7 +3,7 @@ # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. -# Author: R. Schöne +# Author: R. Schoene import re, threading, os, shutil, sys, timeit try: diff --git a/install.py b/install.py index b9aaab4..fbce5f4 100644 --- a/install.py +++ b/install.py @@ -1,7 +1,7 @@ # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. -# Author: R. Schöne +# Author: R. Schoene import os, shutil, sys try: from fabric.api import lcd, task diff --git a/properties.py b/properties.py index 76f3b6f..8b42e34 100644 --- a/properties.py +++ b/properties.py @@ -1,7 +1,7 @@ # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. -# Author: R. Schöne +# Author: R. Schoene from utils import local_quiet properties_fname = 'scheme.properties' diff --git a/sockets.py b/sockets.py index 5bec3fd..60a1de7 100644 --- a/sockets.py +++ b/sockets.py @@ -1,7 +1,7 @@ # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. -# Author: R. Schöne +# Author: R. Schoene from fabric.api import task, local @task diff --git a/utils.py b/utils.py index c024a31..e3f61f2 100644 --- a/utils.py +++ b/utils.py @@ -1,7 +1,7 @@ # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. -# Author: R. Schöne +# Author: R. Schoene import sys, os, csv, shutil, json try: from fabric.api import local, quiet, task, env -- GitLab