コード例 #1
0
ファイル: analysis.py プロジェクト: gnafit/gna
    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"
                )
コード例 #2
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'
コード例 #3
0
ファイル: exp.py プロジェクト: gnafit/gna
    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()
コード例 #4
0
 def __init__(self, *args, **kwargs):
     basecmd.__init__(self, *args, **kwargs)
     self.observables = defaultdict(lambda: defaultdict(lambda: defaultdict()))
     if self.opts.mapping:
         self.load_mapping()
コード例 #5
0
ファイル: plot_heatmap_v1.py プロジェクト: gnafit/gna
 def __init__(self, *args, **kwargs):
     basecmd.__init__(self, *args, **kwargs)
コード例 #6
0
ファイル: dataset_v1.py プロジェクト: gnafit/gna
 def __init__(self, *args, **kwargs):
     basecmd.__init__(self, *args, **kwargs)
     self.opts.name = self.opts.name1 or self.opts.name