コード例 #1
0
 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
コード例 #2
0
 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
コード例 #3
0
ファイル: genericValidation.py プロジェクト: tseva/cmssw
 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
コード例 #4
0
 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