Permalink
Browse files

reports/ascii upgraded to use db.pkl

  • Loading branch information...
jaberg committed Dec 21, 2011
1 parent 21802cb commit b09d8210ec5e394aab8bf8aa4d4a0c6757a2f80a
Showing with 5 additions and 14 deletions.
  1. +5 −14 reports/ascii.py
View
@@ -1,20 +1,11 @@
#!/usr/bin/env python
import os
import sys
-
-from build_csv import build_results
+import cPickle
if __name__ == '__main__':
- r = build_results(sys.argv[1])
- keys = r.keys()
- keys.sort()
+ assert sys.argv[1] == '--db'
+ db = cPickle.load(open(sys.argv[2]))
+ for entry in db:
+ print entry
- for k in keys:
- v = r[k]
- print k
- r_k = [(v[i],i) for i in v]
- r_k.sort()
- r_k.reverse()
- for t, i in r_k:
- print " %10.2f - %s" %(t, i)
- print ''

0 comments on commit b09d821

Please sign in to comment.