added resolution parameter and take first paramter as the input DB file

This commit is contained in:
Stephen McQuay 2011-05-26 21:35:19 -06:00
parent 3070b9de69
commit 5bb994cfad
1 changed files with 3 additions and 1 deletions

View File

@ -1,12 +1,14 @@
import sys
import sqlite3
import numpy as np
con = sqlite3.connect('data.db')
con = sqlite3.connect(sys.argv[1])
cur = con.cursor()
orders = np.array(cur.execute('select distinct ord from results').fetchall())[:,0]
eps = np.array(cur.execute('select distinct ep from results').fetchall())[:,0]
res = np.array(cur.execute('select distinct res from results').fetchall())[:,0]
print "#", orders, eps
with open('time.out', 'w') as time_file: