ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/PsetManipulator.py
(Generate patch)

Comparing COMP/CRAB/python/PsetManipulator.py (file contents):
Revision 1.28 by ewv, Wed May 20 16:37:01 2009 UTC vs.
Revision 1.30 by ewv, Mon Jul 20 19:33:02 2009 UTC

# Line 7 | Line 7 | import pickle
7  
8   from crab_util import *
9   from crab_exceptions import *
10 from crab_logger import Logger
10  
11   from ProdCommon.CMSConfigTools.ConfigAPI.CfgInterface import CfgInterface
12   from FWCore.ParameterSet.DictTypes import SortedKeysDict
# Line 26 | Line 25 | class PsetManipulator:
25          self.pset = pset
26          #convert Pset
27          from FWCore.ParameterSet.Config import include
28 <        common.logger.debug(3,"PsetManipulator::__init__: PSet file = "+self.pset)
28 >        common.logger.debug("PsetManipulator::__init__: PSet file = "+self.pset)
29          # FUTURE: Can drop cfg mode for CMSSW < 2_1_x
30          if self.pset.endswith('py'):
31              handle = open(self.pset, 'r')
# Line 97 | Line 96 | class PsetManipulator:
96          if not self.cfg.data.outputModules:
97              return None
98          poolOutputModule = self.cfg.data.outputModules
99 +        # FIXME: Still a "bug" here in that only one name is returned and the POM can be in any order
100          for out in poolOutputModule:
101 +            if poolOutputModule[out].type_() != "PoolOutputModule":
102 +                continue
103              return poolOutputModule[out].fileName.value()
104  
105      def getBadFilesSetting(self):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines