smbinterp/plots/scalability/hist.py

23 lines
426 B
Python
Raw Normal View History

import sys
import shelve
import pickle
import numpy as np
if len(sys.argv) != 2:
print "usage: %s <interp.shelve>" % sys.argv[0]
sys.exit(1)
s = shelve.open(sys.argv[1])
d = dict(s)
s.close()
for line in (i[1] for i in sorted(d.iteritems(), key = lambda x: x[1]['stats']['participants'])):
run = line['stats']
print "#", run['participants']
x = np.array(run['tasks'].values())
for i in x:
print i
print