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
8989 class bench:
9090 """ class to run benchmarks on directories """
9191 def __init__(self,datadir,resdir=None,checkres=False,checkanno=False,params=[]):
92− from aubio.tasks import taskparams
92+ from aubio.task.params import taskparams
9393 self.datadir = datadir
9494 # path to write results path to
9595 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
6060 print self.params.step*foo[0]
6161
6262 def eval(self,inputdata,ftru,mode='roc',vmode=''):
63− from txtfile import read_datafile
64− from onsetcompare import onset_roc, onset_diffs, onset_rocloc
63+ from aubio.txtfile import read_datafile
64+ from aubio.onsetcompare import onset_roc, onset_diffs, onset_rocloc
6565 ltru = read_datafile(ftru,depth=0)
6666 lres = []
6767 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 @@
11 #! /usr/bin/python
22
3−from aubio.tasks import *
3+from aubio.task import *
44
5−from benchonset import mmean, stdev, benchonset
5+from aubio.bench.onset import mmean, stdev, benchonset
66
77 class mybenchonset(benchonset):
88
python/test/bench/pitch/bench-pitch+1−1
@@ -1,7 +1,7 @@
11 #! /usr/bin/python
22
33 from aubio.bench.node import *
4−from aubio.tasks import *
4+from aubio.task import *
55
66 class benchpitch(bench):
77

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