Changeset a7880d9 for python/aubio
- Timestamp:
- Feb 23, 2006, 3:11:56 AM (19 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 0baafcf
- Parents:
- 83c6734
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio/bench/node.py
r83c6734 ra7880d9 89 89 class bench: 90 90 """ 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=[]): 92 92 self.datadir = datadir 93 93 # path to write results path to … … 97 97 # list used to gather results 98 98 self.results = [] 99 if not params: self.params = taskparams() 100 else: self.params = params 99 101 print "Checking data directory", self.datadir 100 102 self.checkdata() … … 105 107 if os.path.isfile(self.datadir): 106 108 self.dirlist = os.path.dirname(self.datadir) 107 print "DBG: found a file"108 109 elif os.path.isdir(self.datadir): 109 110 self.dirlist = list_dirs(self.datadir) 110 print "DBG: found a dir"111 111 # allow dir* matching through find commands? 112 112 else: … … 216 216 self.dir_eval() 217 217 self.dir_plot() 218 219 def dir_eval_print(self): 220 self.dir_exec() 221 self.dir_eval() 222 self.pretty_print() 223
Note: See TracChangeset
for help on using the changeset viewer.