Skip to content
Snippets Groups Projects
Commit 38c7f3f4 authored by René Schöne's avatar René Schöne
Browse files

Adjust name to non-utf-8.

parent f4983adb
No related branches found
No related tags found
No related merge requests found
# 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
......
# 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
......
# 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 }
......
......@@ -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:
......
......@@ -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 }
......
......@@ -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:
......
# 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
......
# 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'
......
# 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
......
# 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment