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
143143 print "Creating results directory"
144144 act_on_results(mkdir,self.datadir,self.resdir,filter='d')
145145
146− def pretty_print(self,values):
146+ def pretty_print(self,values,sep='|'):
147147 for i in range(len(values)):
148− print self.formats[i] % values[i],
148+ print self.formats[i] % values[i], sep,
149149 print
150150
151151 def dir_exec(self):
152152 """ run file_exec on every input file """
153− self.orig, self.missed, self.merged, self.expc, \
154− self.bad, self.doubled = 0, 0, 0, 0, 0, 0
155− self.l , self.mean = [], 0
156− act_on_files(self.file_exec,self.sndlist,self.reslist, \
157− suffix='',filter=sndfile_filter)
158−
153+ pass
154+
159155 def dir_eval(self):
160156 pass
161157
python/aubio/tasks.py+4−3
@@ -401,9 +401,10 @@ class taskonset(task): · 400 unmodified lines
401401 self.expc, self.bad, self.doubled = \
402402 onset_roc(ltru,lres,self.params.tol)
403403 elif mode == 'rocloc':
404− self.orig, self.missed, self.merged, \
405− self.expc, self.bad, self.doubled, \
406− self.l, self.mean = \
404+ self.v = {}
405+ self.v['orig'], self.v['missed'], self.v['Tm'], \
406+ self.v['expc'], self.v['bad'], self.v['Td'], \
407+ self.v['l'], self.v['labs'] = \
407408 onset_rocloc(ltru,lres,self.params.tol)
408409
409410 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