def __init__(self, *args, **kwargs): basecmd.__init__(self, *args, **kwargs) self.dataset = None if self.opts.observables: if len(self.opts.observables) != len(self.opts.datasets): raise Exception( "Number of observables should be the same as number of datasets or 0" )
def __init__(self, *args, **kwargs): basecmd.__init__(self, *args, **kwargs) if self.opts.plot_type: if self.opts.vs and self.opts.plot_type != 'plot': print('\033[35mWarning! plot-type option was reset to "plot"') self.opts.plot_type = 'plot' elif self.opts.vs: self.opts.plot_type = 'plot' else: self.opts.plot_type = 'bin_center'
def __init__(self, *args, **kwargs): basecmd.__init__(self, *args, **kwargs) self.expname = self.opts.experiment or '_'.join(self.opts.exp) if self.opts.help: self.parser.print_help() print() if not self.expname or self.opts.list_experiments: print("Search paths: ", ', '.join(cfg.experimentpaths)) print("UI exp list of experiments:") list([print(' ', l) for l in list(expmodules.keys())]) raise HelpDisplayed() if self.opts.help: self.init()
def __init__(self, *args, **kwargs): basecmd.__init__(self, *args, **kwargs) self.observables = defaultdict(lambda: defaultdict(lambda: defaultdict())) if self.opts.mapping: self.load_mapping()
def __init__(self, *args, **kwargs): basecmd.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): basecmd.__init__(self, *args, **kwargs) self.opts.name = self.opts.name1 or self.opts.name