History

add params to pass to bench, remove debug messages, rewrite gnuplot_create add params to pass to bench, remove debug messages, rewrite gnuplot_create

Paul Brossier committed 20 years ago

Commit a7880d91 parent 83c67341 file · +9 −3Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/aubio/bench/node.py+9−3
@@ -88,7 +88,7 @@ def act_on_files (action,listfiles,listres=None,suffix='.txt',filter='f',sub='\. · 87 unmodified lines
8888
8989 class bench:
9090 """ class to run benchmarks on directories """
91− def __init__(self,datadir,resdir=None,checkres=False,checkanno=False):
91+ def __init__(self,datadir,resdir=None,checkres=False,checkanno=False,params=[]):
9292 self.datadir = datadir
9393 # path to write results path to
9494 self.resdir = resdir
@@ -96,6 +96,8 @@ class bench: · 1 unmodified line
9696 self.reslist = []
9797 # list used to gather results
9898 self.results = []
99+ if not params: self.params = taskparams()
100+ else: self.params = params
99101 print "Checking data directory", self.datadir
100102 self.checkdata()
101103 if checkanno: self.checkanno()
@@ -104,10 +106,8 @@ class bench: · 2 unmodified lines
104106 def checkdata(self):
105107 if os.path.isfile(self.datadir):
106108 self.dirlist = os.path.dirname(self.datadir)
107− print "DBG: found a file"
108109 elif os.path.isdir(self.datadir):
109110 self.dirlist = list_dirs(self.datadir)
110− print "DBG: found a dir"
111111 # allow dir* matching through find commands?
112112 else:
113113 print "ERR: path not understood"
@@ -215,3 +215,9 @@ class bench: · 101 unmodified lines
215215 self.dir_exec()
216216 self.dir_eval()
217217 self.dir_plot()
218+
219+ def dir_eval_print(self):
220+ self.dir_exec()
221+ self.dir_eval()
222+ self.pretty_print()
223+

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t