From 5bb994cfad7f88589d6353b3c2a65b37fa96253b Mon Sep 17 00:00:00 2001 From: Stephen Mardson McQuay Date: Thu, 26 May 2011 21:35:19 -0600 Subject: [PATCH] added resolution parameter and take first paramter as the input DB file --- gmsh/03_plotter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gmsh/03_plotter.py b/gmsh/03_plotter.py index c6d1e6c..64284ca 100644 --- a/gmsh/03_plotter.py +++ b/gmsh/03_plotter.py @@ -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: