Changeset a7880d9


Ignore:
Timestamp:
Feb 23, 2006, 3:11:56 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:
0baafcf
Parents:
83c6734
Message:

add params to pass to bench, remove debug messages, rewrite gnuplot_create
add params to pass to bench, remove debug messages, rewrite gnuplot_create

File:
1 edited

Legend:

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

    r83c6734 ra7880d9  
    8989class bench:
    9090        """ class to run benchmarks on directories """
    91         def __init__(self,datadir,resdir=None,checkres=False,checkanno=False):
     91        def __init__(self,datadir,resdir=None,checkres=False,checkanno=False,params=[]):
    9292                self.datadir = datadir
    9393                # path to write results path to
     
    9797                # list used to gather results
    9898                self.results = []
     99                if not params: self.params = taskparams()
     100                else:          self.params = params
    99101                print "Checking data directory", self.datadir
    100102                self.checkdata()
     
    105107                if os.path.isfile(self.datadir):
    106108                        self.dirlist = os.path.dirname(self.datadir)
    107                         print "DBG: found a file"
    108109                elif os.path.isdir(self.datadir):
    109110                        self.dirlist = list_dirs(self.datadir)
    110                         print "DBG: found a dir"
    111111                # allow dir* matching through find commands?
    112112                else:
     
    216216                        self.dir_eval()
    217217                        self.dir_plot()
     218
     219        def dir_eval_print(self):
     220                self.dir_exec()
     221                self.dir_eval()
     222                self.pretty_print()
     223
Note: See TracChangeset for help on using the changeset viewer.