History

move benchonset to aubio.bench move benchonset to aubio.bench

Paul Brossier committed 20 years ago

Commit 43938de1 parent 13c3fba5 files · +6 −6Browse files

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

Unified · Split

5 files
  1. python/aubio/bench/node.py +1 −1
  2. python/aubio/bench/onset.py +0 −0
  3. python/aubio/task/onset.py +2 −2
  4. python/test/bench/onset/bench-onset +2 −2
  5. python/test/bench/pitch/bench-pitch +1 −1
python/aubio/bench/node.py+1−1
@@ -89,7 +89,7 @@ def act_on_files (action,listfiles,listres=None,suffix='.txt',filter='f',sub='\. · 88 unmodified lines
89class bench:89class bench:
90 """ class to run benchmarks on directories """90 """ class to run benchmarks on directories """
91 def __init__(self,datadir,resdir=None,checkres=False,checkanno=False,params=[]):91 def __init__(self,datadir,resdir=None,checkres=False,checkanno=False,params=[]):
92 from aubio.tasks import taskparams92 from aubio.task.params import taskparams
93 self.datadir = datadir93 self.datadir = datadir
94 # path to write results path to94 # path to write results path to
95 self.resdir = resdir95 self.resdir = resdir
python/aubio/bench/onset.pyrenamed from python/test/bench/onset/benchonset.py+0−0

File renamed without changes.

python/aubio/task/onset.py+2−2
@@ -60,8 +60,8 @@ class taskonset(task): · 59 unmodified lines
60 print self.params.step*foo[0]60 print self.params.step*foo[0]
61 61
62 def eval(self,inputdata,ftru,mode='roc',vmode=''):62 def eval(self,inputdata,ftru,mode='roc',vmode=''):
63 from txtfile import read_datafile 63 from aubio.txtfile import read_datafile
64 from onsetcompare import onset_roc, onset_diffs, onset_rocloc64 from aubio.onsetcompare import onset_roc, onset_diffs, onset_rocloc
65 ltru = read_datafile(ftru,depth=0)65 ltru = read_datafile(ftru,depth=0)
66 lres = []66 lres = []
67 for i in range(len(inputdata)): lres.append(inputdata[i][0]*self.params.step)67 for i in range(len(inputdata)): lres.append(inputdata[i][0]*self.params.step)
python/test/bench/onset/bench-onset+2−2
@@ -1,8 +1,8 @@
1#! /usr/bin/python1#! /usr/bin/python
2 2
3from aubio.tasks import *3from aubio.task import *
4 4
5from benchonset import mmean, stdev, benchonset5from aubio.bench.onset import mmean, stdev, benchonset
6 6
7class mybenchonset(benchonset):7class mybenchonset(benchonset):
8 8
python/test/bench/pitch/bench-pitch+1−1
@@ -1,7 +1,7 @@
1#! /usr/bin/python1#! /usr/bin/python
2 2
3from aubio.bench.node import *3from aubio.bench.node import *
4from aubio.tasks import *4from aubio.task import *
5 5
6class benchpitch(bench):6class benchpitch(bench):
7 7

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