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
80def act_on_files (action,listfiles,listres=None,suffix='.txt',filter='f',sub='\.wav$',**keywords):80def act_on_files (action,listfiles,listres=None,suffix='.txt',filter='f',sub='\.wav$',**keywords):
81 """ execute action(respath) an all subdirectories in respath """81 """ execute action(respath) an all subdirectories in respath """
82 if listres and len(listfiles) <= len(listres): 82 if listres and len(listfiles) <= len(listres):
83 for i in listfiles:83 for i in range(len(listfiles)):
84 action(i,listres[i],**keywords)84 action(listfiles[i],listres[i],**keywords)
85 else:85 else:
86 for i in listfiles:86 for i in listfiles:
87 action(i,None,**keywords)87 action(i,None,**keywords)
@@ -152,6 +152,7 @@ class bench: · 64 unmodified lines
152 """ run file_exec on every input file """152 """ run file_exec on every input file """
153 self.orig, self.missed, self.merged, self.expc, \153 self.orig, self.missed, self.merged, self.expc, \
154 self.bad, self.doubled = 0, 0, 0, 0, 0, 0154 self.bad, self.doubled = 0, 0, 0, 0, 0, 0
155 self.l , self.mean = [], 0
155 act_on_files(self.file_exec,self.sndlist,self.reslist, \156 act_on_files(self.file_exec,self.sndlist,self.reslist, \
156 suffix='',filter=sndfile_filter)157 suffix='',filter=sndfile_filter)
157 158

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