Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 8a6d267189
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (25 sloc) 0.671 kB
# -*- coding: utf-8 -*-
#
# (c) Mihai Maruseac, 341C3 (2011), mihai.maruseac@rosedu.org
#
import cPickle
def main(files):
"""
Compares runs from the passed list of files.
Basically, it just prints everything to be piped to a gnuplot command.
return True if everything is ok, False otherwise
"""
_lists_ = []
for fname in files:
try:
with open(fname) as f:
_lists_.append(cPickle.load(f))
except:
return False
minl = min(map(lambda l:len(l), _lists_))
for i in range(minl):
print i,
for l in _lists_:
print l[i],
print
return True
Jump to Line
Something went wrong with that request. Please try again.