Changeset 336cf77 for python/aubio


Ignore:
Timestamp:
Dec 16, 2005, 5:34:00 AM (19 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
50791b3
Parents:
75139a9
Message:

rename class task to bench, move pretty_print into it
rename class task to bench, move pretty_print into it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/bench/node.py

    r75139a9 r336cf77  
    7171                action("%s%s%s"%(respath,'/',s))
    7272
    73 class task:
     73class bench:
    7474
    75         def __init__(self,datadir,resdir):
     75        def __init__(self,datadir,resdir,checkres=False,checkanno=False):
    7676                self.datadir = datadir
    7777                self.resdir = resdir
    7878                print "Checking data directory", self.datadir
    7979                self.checkdata()
    80                 self.checkres()
     80                if checkanno: self.checkanno()
     81                if checkres: self.checkres()
    8182       
    8283        def checkdata(self):
     
    8990                print " (%d elements)" % len(self.sndlist)
    9091                #for each in self.sndlist: print each
     92       
     93        def checkanno(self):
    9194                print "Listing annotations in data directory",
    9295                self.reslist = list_res_files(self.datadir)
     
    102105                print "Creating results directory"
    103106                act_on_results(mkdir,self.datadir,self.resdir,filter='d')
     107
     108        def pretty_print(self,values):
     109                for i in range(len(values)):
     110                        print self.formats[i] % values[i],
     111                print
     112
Note: See TracChangeset for help on using the changeset viewer.