本文整理汇总了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
示例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)
示例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)
示例4: createScript
# 需要导入模块: from genericValidation import GenericValidationData [as 别名]
# 或者: from genericValidation.GenericValidationData import createScript [as 别名]
def createScript(self, path):
return GenericValidationData.createScript(self, path)