Changeset 336cf77 for python/aubio/bench
- Timestamp:
- Dec 16, 2005, 5:34:00 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:
- 50791b3
- Parents:
- 75139a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio/bench/node.py
r75139a9 r336cf77 71 71 action("%s%s%s"%(respath,'/',s)) 72 72 73 class task:73 class bench: 74 74 75 def __init__(self,datadir,resdir ):75 def __init__(self,datadir,resdir,checkres=False,checkanno=False): 76 76 self.datadir = datadir 77 77 self.resdir = resdir 78 78 print "Checking data directory", self.datadir 79 79 self.checkdata() 80 self.checkres() 80 if checkanno: self.checkanno() 81 if checkres: self.checkres() 81 82 82 83 def checkdata(self): … … 89 90 print " (%d elements)" % len(self.sndlist) 90 91 #for each in self.sndlist: print each 92 93 def checkanno(self): 91 94 print "Listing annotations in data directory", 92 95 self.reslist = list_res_files(self.datadir) … … 102 105 print "Creating results directory" 103 106 act_on_results(mkdir,self.datadir,self.resdir,filter='d') 107 108 def pretty_print(self,values): 109 for i in range(len(values)): 110 print self.formats[i] % values[i], 111 print 112
Note: See TracChangeset
for help on using the changeset viewer.