History

fixed results/data fan out, update onset template fixed results/data fan out, update onset template

Paul Brossier committed 20 years ago

Commit a3254df1 parent b47c6261 file · +3 −2Browse files

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

Unified · Split

python/aubio/bench/node.py+3−2
@@ -80,8 +80,8 @@ def act_on_results (action,datapath,respath,filter='d'): · 79 unmodified lines
8080 def act_on_files (action,listfiles,listres=None,suffix='.txt',filter='f',sub='\.wav$',**keywords):
8181 """ execute action(respath) an all subdirectories in respath """
8282 if listres and len(listfiles) <= len(listres):
83− for i in listfiles:
84− action(i,listres[i],**keywords)
83+ for i in range(len(listfiles)):
84+ action(listfiles[i],listres[i],**keywords)
8585 else:
8686 for i in listfiles:
8787 action(i,None,**keywords)
@@ -152,6 +152,7 @@ class bench: · 64 unmodified lines
152152 """ run file_exec on every input file """
153153 self.orig, self.missed, self.merged, self.expc, \
154154 self.bad, self.doubled = 0, 0, 0, 0, 0, 0
155+ self.l , self.mean = [], 0
155156 act_on_files(self.file_exec,self.sndlist,self.reslist, \
156157 suffix='',filter=sndfile_filter)
157158

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