本文整理汇总了Python中ProdCommon.MCPayloads.WorkflowSpec.WorkflowSpec.setAcquisitionEra方法的典型用法代码示例。如果您正苦于以下问题:Python WorkflowSpec.setAcquisitionEra方法的具体用法?Python WorkflowSpec.setAcquisitionEra怎么用?Python WorkflowSpec.setAcquisitionEra使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProdCommon.MCPayloads.WorkflowSpec.WorkflowSpec
的用法示例。
在下文中一共展示了WorkflowSpec.setAcquisitionEra方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from ProdCommon.MCPayloads.WorkflowSpec import WorkflowSpec [as 别名]
# 或者: from ProdCommon.MCPayloads.WorkflowSpec.WorkflowSpec import setAcquisitionEra [as 别名]
#.........这里部分代码省略.........
self.cmsRunNodes = [self.cmsRunNode]
self.saveOutputFor = []
def chainCmsRunNode(self, stageOutIntermediates = False, *outputModules):
"""
append a cmsRun config to the current cmsRun node and chain them
"""
if stageOutIntermediates: #Do we want to keep cmsRunNode's products?
self.saveOutputFor.append(self.cmsRunNode.name)
newnode = self.cmsRunNode.newNode("cmsRun%s" %
(len(self.cmsRunNodes) + 1))
newnode.type = "CMSSW"
if not outputModules:
outputModules = self.configurations[-1].outputModules.keys()
for outmodule in outputModules:
newnode.addInputLink(self.cmsRunNode.name, outmodule,
'source', AppearStandalone = not stageOutIntermediates)
self.cmsRunNode = newnode
self.cmsRunNodes.append(newnode)
def changeCategory(self, newCategory):
"""
_changeCategory_
Change the workflow category from the default mc
that appears in the LFNs
"""
self.workflow.setRequestCategory(newCategory)
return
def setAcquisitionEra(self,era):
"""
_setAcquisitionEra_
Sets the AcquisitionEra in the workflow
"""
self.workflow.setAcquisitionEra(era)
self.acquisitionEra=era
return
def setNamingConventionParameters(self, era, procString, procVers):
"""
_setNamingConventionParameters_
Sets AcquisitionEra, ProcessingString and ProcessingVersion
"""
self.workflow.setAcquisitionEra(era)
self.workflow.parameters['ProcessingString'] = procString
self.workflow.parameters['ProcessingVersion'] = procVers
self.acquisitionEra=era
self.processingString = procString
self.processingVersion = procVers
self.useProperNamingConventions = True
return
def setActivity(self, activity):