本文整理汇总了Python中grid_control.tasks.task_data.DataTask.getTaskConfig方法的典型用法代码示例。如果您正苦于以下问题:Python DataTask.getTaskConfig方法的具体用法?Python DataTask.getTaskConfig怎么用?Python DataTask.getTaskConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类grid_control.tasks.task_data.DataTask
的用法示例。
在下文中一共展示了DataTask.getTaskConfig方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getTaskConfig
# 需要导入模块: from grid_control.tasks.task_data import DataTask [as 别名]
# 或者: from grid_control.tasks.task_data.DataTask import getTaskConfig [as 别名]
def getTaskConfig(self):
data = DataTask.getTaskConfig(self)
data['SCRAM_VERSION'] = self._scramVersion
data['SCRAM_ARCH'] = self._scramArch
data['SCRAM_PROJECTNAME'] = self._scramProject
data['SCRAM_PROJECTVERSION'] = self._scramProjectVersion
return data
示例2: getTaskConfig
# 需要导入模块: from grid_control.tasks.task_data import DataTask [as 别名]
# 或者: from grid_control.tasks.task_data.DataTask import getTaskConfig [as 别名]
def getTaskConfig(self):
data = DataTask.getTaskConfig(self)
data.update(dict(self.searchLoc))
data['CMSSW_OLD_RELEASETOP'] = self.scramEnv.get('RELEASETOP', None)
data['SCRAM_ARCH'] = self.scramArch
data['SCRAM_VERSION'] = self.scramVersion
data['SCRAM_PROJECTVERSION'] = self.scramEnv['SCRAM_PROJECTVERSION']
data['GZIP_OUT'] = utils.QM(self.gzipOut, 'yes', 'no')
data['SE_RUNTIME'] = utils.QM(self._projectAreaTarballSE, 'yes', 'no')
data['HAS_RUNTIME'] = utils.QM(len(self.projectArea), 'yes', 'no')
data['CMSSW_CONFIG'] = str.join(' ', imap(os.path.basename, self.configFiles))
if self.prolog.isActive():
data['CMSSW_PROLOG_EXEC'] = self.prolog.getCommand()
data['CMSSW_PROLOG_SB_IN_FILES'] = str.join(' ', imap(lambda x: x.pathRel, self.prolog.getSBInFiles()))
data['CMSSW_PROLOG_ARGS'] = self.prolog.getArguments()
if self.epilog.isActive():
data['CMSSW_EPILOG_EXEC'] = self.epilog.getCommand()
data['CMSSW_EPILOG_SB_IN_FILES'] = str.join(' ', imap(lambda x: x.pathRel, self.epilog.getSBInFiles()))
data['CMSSW_EPILOG_ARGS'] = self.epilog.getArguments()
return data