From: Paul Brossier Date: Fri, 3 Mar 2006 06:11:52 +0000 (+0000) Subject: move benchonset to aubio.bench X-Git-Tag: bzr2git~739 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=43938deb94e79f59bff176d423d100ed29f5a6c3;p=aubio.git move benchonset to aubio.bench move benchonset to aubio.bench --- diff --git a/python/aubio/bench/node.py b/python/aubio/bench/node.py index 3ec442ba..15969d39 100644 --- a/python/aubio/bench/node.py +++ b/python/aubio/bench/node.py @@ -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 diff --git a/python/test/bench/onset/benchonset.py b/python/aubio/bench/onset.py similarity index 100% rename from python/test/bench/onset/benchonset.py rename to python/aubio/bench/onset.py diff --git a/python/aubio/task/onset.py b/python/aubio/task/onset.py index 0f58ff4e..59ae47af 100644 --- a/python/aubio/task/onset.py +++ b/python/aubio/task/onset.py @@ -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) diff --git a/python/test/bench/onset/bench-onset b/python/test/bench/onset/bench-onset index 9edc8665..a56e4d47 100755 --- a/python/test/bench/onset/bench-onset +++ b/python/test/bench/onset/bench-onset @@ -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): diff --git a/python/test/bench/pitch/bench-pitch b/python/test/bench/pitch/bench-pitch index a0a31a08..7ad73517 100755 --- a/python/test/bench/pitch/bench-pitch +++ b/python/test/bench/pitch/bench-pitch @@ -1,7 +1,7 @@ #! /usr/bin/python from aubio.bench.node import * -from aubio.tasks import * +from aubio.task import * class benchpitch(bench):