本文整理汇总了Python中DIRAC.Resources.Computing.ComputingElement.ComputingElement._addCEConfigDefaults方法的典型用法代码示例。如果您正苦于以下问题:Python ComputingElement._addCEConfigDefaults方法的具体用法?Python ComputingElement._addCEConfigDefaults怎么用?Python ComputingElement._addCEConfigDefaults使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DIRAC.Resources.Computing.ComputingElement.ComputingElement
的用法示例。
在下文中一共展示了ComputingElement._addCEConfigDefaults方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _addCEConfigDefaults
# 需要导入模块: from DIRAC.Resources.Computing.ComputingElement import ComputingElement [as 别名]
# 或者: from DIRAC.Resources.Computing.ComputingElement.ComputingElement import _addCEConfigDefaults [as 别名]
def _addCEConfigDefaults( self ):
"""Method to make sure all necessary Configuration Parameters are defined
"""
# First assure that any global parameters are loaded
ComputingElement._addCEConfigDefaults( self )
# Now batch system specific ones
if 'ExecQueue' not in self.ceParameters:
self.ceParameters['ExecQueue'] = self.ceParameters.get( 'Queue', '' )
if 'SharedArea' not in self.ceParameters:
defaultPath = os.environ.get( 'HOME', '.' )
self.ceParameters['SharedArea'] = gConfig.getValue( '/LocalSite/InstancePath', defaultPath )
if 'BatchOutput' not in self.ceParameters:
self.ceParameters['BatchOutput'] = 'data'
if 'BatchError' not in self.ceParameters:
self.ceParameters['BatchError'] = 'data'
if 'ExecutableArea' not in self.ceParameters:
self.ceParameters['ExecutableArea'] = 'data'
if 'InfoArea' not in self.ceParameters:
self.ceParameters['InfoArea'] = 'info'
if 'WorkArea' not in self.ceParameters:
self.ceParameters['WorkArea'] = 'work'
示例2: _addCEConfigDefaults
# 需要导入模块: from DIRAC.Resources.Computing.ComputingElement import ComputingElement [as 别名]
# 或者: from DIRAC.Resources.Computing.ComputingElement.ComputingElement import _addCEConfigDefaults [as 别名]
def _addCEConfigDefaults( self ):
"""Method to make sure all necessary Configuration Parameters are defined
"""
# First assure that any global parameters are loaded
ComputingElement._addCEConfigDefaults( self )
# Now batch system specific ones
if 'ExecQueue' not in self.ceParameters:
self.ceParameters['ExecQueue'] = self.ceParameters.get( 'Queue', '' )
if 'SharedArea' not in self.ceParameters:
self.ceParameters['SharedArea'] = '.'
if 'BatchOutput' not in self.ceParameters:
self.ceParameters['BatchOutput'] = 'data'
if 'BatchError' not in self.ceParameters:
self.ceParameters['BatchError'] = 'data'
if 'ExecutableArea' not in self.ceParameters:
self.ceParameters['ExecutableArea'] = 'data'
if 'InfoArea' not in self.ceParameters:
self.ceParameters['InfoArea'] = 'info'
if 'WorkArea' not in self.ceParameters:
self.ceParameters['WorkArea'] = 'work'
if 'SubmitOptions' not in self.ceParameters:
self.ceParameters['SubmitOptions'] = '-'
示例3: _addCEConfigDefaults
# 需要导入模块: from DIRAC.Resources.Computing.ComputingElement import ComputingElement [as 别名]
# 或者: from DIRAC.Resources.Computing.ComputingElement.ComputingElement import _addCEConfigDefaults [as 别名]
def _addCEConfigDefaults( self ):
"""Method to make sure all necessary Configuration Parameters are defined
"""
# First assure that any global parameters are loaded
ComputingElement._addCEConfigDefaults( self )
# Now Torque specific ones
if 'ExecQueue' not in self.ceConfigDict:
self.ceConfigDict['ExecQueue'] = self.ceConfigDict['Queue']
if 'SharedArea' not in self.ceConfigDict:
self.ceConfigDict['SharedArea'] = ''
if 'BatchOutput' not in self.ceConfigDict:
self.ceConfigDict['BatchOutput'] = os.path.join( gConfig.getValue( '/LocalSite/InstancePath', rootPath ), 'data' )
if 'BatchError' not in self.ceConfigDict:
self.ceConfigDict['BatchError'] = os.path.join( gConfig.getValue( '/LocalSite/InstancePath', rootPath ), 'data' )
示例4: _addCEConfigDefaults
# 需要导入模块: from DIRAC.Resources.Computing.ComputingElement import ComputingElement [as 别名]
# 或者: from DIRAC.Resources.Computing.ComputingElement.ComputingElement import _addCEConfigDefaults [as 别名]
def _addCEConfigDefaults(self):
"""Method to make sure all necessary Configuration Parameters are defined
"""
# First assure that any global parameters are loaded
ComputingElement._addCEConfigDefaults(self)
# Now Torque specific ones
if "ExecQueue" not in self.ceConfigDict:
self.ceConfigDict["ExecQueue"] = self.ceConfigDict["Queue"]
if "SharedArea" not in self.ceConfigDict:
self.ceConfigDict["SharedArea"] = ""
if "BatchOutput" not in self.ceConfigDict:
self.ceConfigDict["BatchOutput"] = os.path.join(
gConfig.getValue("/LocalSite/InstancePath", rootPath), "data"
)
if "BatchError" not in self.ceConfigDict:
self.ceConfigDict["BatchError"] = os.path.join(
gConfig.getValue("/LocalSite/InstancePath", rootPath), "data"
)
示例5: _addCEConfigDefaults
# 需要导入模块: from DIRAC.Resources.Computing.ComputingElement import ComputingElement [as 别名]
# 或者: from DIRAC.Resources.Computing.ComputingElement.ComputingElement import _addCEConfigDefaults [as 别名]
def _addCEConfigDefaults(self):
"""Method to make sure all necessary Configuration Parameters are defined
"""
# First assure that any global parameters are loaded
ComputingElement._addCEConfigDefaults(self)