当前位置: 首页>>代码示例>>Python>>正文


Python GenericValidationData.createScript方法代码示例

本文整理汇总了Python中genericValidation.GenericValidationData.createScript方法的典型用法代码示例。如果您正苦于以下问题:Python GenericValidationData.createScript方法的具体用法?Python GenericValidationData.createScript怎么用?Python GenericValidationData.createScript使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在genericValidation.GenericValidationData的用法示例。


在下文中一共展示了GenericValidationData.createScript方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: createScript

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import createScript [as 别名]
 def createScript(self, path, scriptBaseName = "TkAlOfflineValidation"):
     # A separate script is created for each parallel jobs.
     # Since only one cfg is saved a bit ugly solution is needed in the loop.
     returnValue = []
     numJobs = int( self.general["parallelJobs"] )
     for index in range(numJobs):
         scriptName = "%s.%s.%s_%s.sh"%(scriptBaseName, self.name, 
                                        self.alignmentToValidate.name,
                                        str(index))
         repMap = self.getRepMap()
         repMap["nIndex"]=""
         repMap["nIndex"]=str(index)
         repMap["CommandLine"]=""
         repMap.update({
             "outputFile": replaceByMap("AlignmentValidation_"
                                        + self.name +
                                        "_.oO[name]Oo._.oO[nIndex]Oo..root",
                                        repMap )
             })
         for cfg in self.configFiles:
             # The ugly solution here is to change the name for each parallel job 
             cfgtemp = cfg.replace(str(numJobs-1)+"_cfg.py",
                                   str(index)+"_cfg.py")
             repMap["CommandLine"]+= repMap["CommandLineTemplate"]%{"cfgFile":cfgtemp,
                                                                    "postProcess":""
                                                                    }
             scripts = {scriptName: replaceByMap(configTemplates.parallelScriptTemplate,
                                                 repMap ) }
             returnValue.extend(GenericValidationData.createScript(self,
                                                                   scripts,
                                                                   path) )
     return returnValue
开发者ID:HeinerTholen,项目名称:cmssw,代码行数:34,代码来源:offlineValidation.py

示例2: createScript

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import createScript [as 别名]
 def createScript(self, path, scriptBaseName="TkAlZMuMuValidation"):
     scriptName = "%s.%s.%s.sh" % (scriptBaseName, self.name, self.alignmentToValidate.name)
     repMap = self.getRepMap()
     repMap["CommandLine"] = ""
     for cfg in self.configFiles:
         repMap["CommandLine"] += repMap["CommandLineTemplate"] % {"cfgFile": cfg, "postProcess": ""}
     scripts = {scriptName: replaceByMap(configTemplates.zMuMuScriptTemplate, repMap)}
     return GenericValidationData.createScript(self, scripts, path)
开发者ID:nsahoo,项目名称:cmssw-1,代码行数:10,代码来源:zMuMuValidation.py

示例3: createScript

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import createScript [as 别名]
 def createScript(self, path):
     return GenericValidationData.createScript(self, path, template = configTemplates.PVValidationScriptTemplate)
开发者ID:archiron,项目名称:cmssw,代码行数:4,代码来源:primaryVertexValidation.py

示例4: createScript

# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import createScript [as 别名]
 def createScript(self, path):
     return GenericValidationData.createScript(self, path)
开发者ID:DesyTau,项目名称:cmssw,代码行数:4,代码来源:trackSplittingValidation.py


注:本文中的genericValidation.GenericValidationData.createScript方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。