Exemplo n.º 1
0
 def __init__(self, pyFormatCfgFile, isString = False):
     if not isString:
         cfgContent = file(pyFormatCfgFile).read()
     else:
         cfgContent = pyFormatCfgFile
         
     self.cmsConfig = cmsconfig(cfgContent)
     self.inputSource = InputSource(self.cmsConfig.mainInputSource())
     self.outputModules = {}
     for omodName in self.cmsConfig.outputModuleNames():
         self.outputModules[omodName] = OutputModule(
             omodName, self.cmsConfig.module(omodName)
             )
Exemplo n.º 2
0
def expandPSetDetails(jobSpecNode):
    """
    _expandPSetDetails_

    Extract details of Input and Output modules from the PSet configuration
    embedded in the JobSpecNode instance provided

    """
    config = jobSpecNode.configuration
    try:
        pset = cmsconfig(config)
    except StandardError, ex:
        # cant read PSet, give up and return
        return
Exemplo n.º 3
0
def expandPSetDetails(jobSpecNode):
    """
    _expandPSetDetails_

    Extract details of Input and Output modules from the PSet configuration
    embedded in the JobSpecNode instance provided

    """
    config = jobSpecNode.configuration
    try:
        pset = cmsconfig(config)
    except StandardError, ex:
        # cant read PSet, give up and return
        return