History

start using results structure, move onset specific out of node start using results structure, move onset specific out of node

Paul Brossier committed 20 years ago

Commit dbc03511 parent 0cd995a2 files · +8 −11Browse files

Showing the changes to python (2 of 2 files). Show all

Unified · Split

2 files
  1. python/aubio/bench/node.py +4 −8
  2. python/aubio/tasks.py +4 −3
python/aubio/bench/node.py+4−8
@@ -143,19 +143,15 @@ class bench: · 142 unmodified lines
143 print "Creating results directory"143 print "Creating results directory"
144 act_on_results(mkdir,self.datadir,self.resdir,filter='d')144 act_on_results(mkdir,self.datadir,self.resdir,filter='d')
145 145
146 def pretty_print(self,values):146 def pretty_print(self,values,sep='|'):
147 for i in range(len(values)):147 for i in range(len(values)):
148 print self.formats[i] % values[i],148 print self.formats[i] % values[i], sep,
149 print149 print
150 150
151 def dir_exec(self):151 def dir_exec(self):
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 pass
154 self.bad, self.doubled = 0, 0, 0, 0, 0, 0154
155 self.l , self.mean = [], 0
156 act_on_files(self.file_exec,self.sndlist,self.reslist, \
157 suffix='',filter=sndfile_filter)
158
159 def dir_eval(self):155 def dir_eval(self):
160 pass156 pass
161 157
python/aubio/tasks.py+4−3
@@ -401,9 +401,10 @@ class taskonset(task): · 400 unmodified lines
401 self.expc, self.bad, self.doubled = \401 self.expc, self.bad, self.doubled = \
402 onset_roc(ltru,lres,self.params.tol)402 onset_roc(ltru,lres,self.params.tol)
403 elif mode == 'rocloc':403 elif mode == 'rocloc':
404 self.orig, self.missed, self.merged, \404 self.v = {}
405 self.expc, self.bad, self.doubled, \405 self.v['orig'], self.v['missed'], self.v['Tm'], \
406 self.l, self.mean = \406 self.v['expc'], self.v['bad'], self.v['Td'], \
407 self.v['l'], self.v['labs'] = \
407 onset_rocloc(ltru,lres,self.params.tol)408 onset_rocloc(ltru,lres,self.params.tol)
408 409
409 def plot(self,onsets,ofunc):410 def plot(self,onsets,ofunc):

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