move benchonset to aubio.bench
authorPaul Brossier <piem@altern.org>
Fri, 3 Mar 2006 06:11:52 +0000 (06:11 +0000)
committerPaul Brossier <piem@altern.org>
Fri, 3 Mar 2006 06:11:52 +0000 (06:11 +0000)
move benchonset to aubio.bench

python/aubio/bench/node.py
python/aubio/bench/onset.py [moved from python/test/bench/onset/benchonset.py with 100% similarity]
python/aubio/task/onset.py
python/test/bench/onset/bench-onset
python/test/bench/pitch/bench-pitch

index 3ec442ba165f4b1238f8c456eab8829c7fd2651a..15969d39a258da45cdedd4424ff351a89340d24c 100644 (file)
@@ -89,7 +89,7 @@ def act_on_files (action,listfiles,listres=None,suffix='.txt',filter='f',sub='\.
 class bench:
        """ class to run benchmarks on directories """
        def __init__(self,datadir,resdir=None,checkres=False,checkanno=False,params=[]):
-               from aubio.tasks import taskparams
+               from aubio.task.params import taskparams
                self.datadir = datadir
                # path to write results path to
                self.resdir = resdir
index 0f58ff4ea786ad98f11476cb51382b5d8c1cd76a..59ae47afc50f1ae8719515fee5eede6d63105cf0 100644 (file)
@@ -60,8 +60,8 @@ class taskonset(task):
                print self.params.step*foo[0]
 
        def eval(self,inputdata,ftru,mode='roc',vmode=''):
-               from txtfile import read_datafile 
-               from onsetcompare import onset_roc, onset_diffs, onset_rocloc
+               from aubio.txtfile import read_datafile 
+               from aubio.onsetcompare import onset_roc, onset_diffs, onset_rocloc
                ltru = read_datafile(ftru,depth=0)
                lres = []
                for i in range(len(inputdata)): lres.append(inputdata[i][0]*self.params.step)
index 9edc8665c84c8deb2ac69e5a3b0f6ffd273729ca..a56e4d47b9ecf9831b3b5d457a3e3eed2949e8a0 100755 (executable)
@@ -1,8 +1,8 @@
 #! /usr/bin/python
 
-from aubio.tasks import *
+from aubio.task import *
 
-from benchonset import mmean, stdev, benchonset
+from aubio.bench.onset import mmean, stdev, benchonset
 
 class mybenchonset(benchonset):
 
index a0a31a08630f7f584073ec88c4258582fbb2889f..7ad73517481aa03b4845ecafac62c242be3a829e 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/python
 
 from aubio.bench.node import *
-from aubio.tasks import *
+from aubio.task import *
 
 class benchpitch(bench):