def getRepMap(self): #do not call super try: result = PlottingOptions(self.config, self.valType) except KeyError: result = {} result.update(self.general) result.update({ "color": str(parsecolor(result["color"])), "style": str(parsestyle(result["style"])), }) return result
def getRepMap(self, alignment=None): if alignment == None: alignment = self.alignmentToValidate try: result = PlottingOptions(self.config, self.valType) except KeyError: result = {} result.update(alignment.getRepMap()) result.update(self.general) result.update({ "workdir": os.path.join(self.general["workdir"], self.randomWorkdirPart), "datadir": self.general["datadir"], "logdir": self.general["logdir"], "CommandLineTemplate": ("#run configfile and post-proccess it\n" "cmsRun %(cfgFile)s\n" "%(postProcess)s "), "CMSSW_BASE": self.cmssw, "SCRAM_ARCH": self.scramarch, "CMSSW_RELEASE_BASE": self.cmsswreleasebase, "alignmentName": alignment.name, "condLoad": alignment.getConditions(), "LoadGlobalTagTemplate": configTemplates.loadGlobalTagTemplate, }) result.update(self.packages) return result
def getRepMap(self, alignment = None): from plottingOptions import PlottingOptions if alignment == None: alignment = self.alignmentToValidate try: result = PlottingOptions(self.config, self.valType) except KeyError: result = {} result.update(alignment.getRepMap()) result.update(self.general) result.update({ "workdir": os.path.join(self.general["workdir"], self.randomWorkdirPart), "datadir": self.general["datadir"], "logdir": self.general["logdir"], "CommandLineTemplate": ("#run configfile and post-proccess it\n" "cmsRun %(cfgFile)s\n" "%(postProcess)s "), "CMSSW_BASE": self.cmssw, "SCRAM_ARCH": self.scramarch, "CMSSW_RELEASE_BASE": self.cmsswreleasebase, "alignmentName": alignment.name, "condLoad": alignment.getConditions(), "LoadGlobalTagTemplate": configTemplates.loadGlobalTagTemplate, }) result.update(self.packages) return result