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

Comparing COMP/CRAB/python/Publisher.py (file contents):
Revision 1.14 by afanfani, Thu Jul 17 13:37:06 2008 UTC vs.
Revision 1.17 by afanfani, Wed Oct 15 09:28:21 2008 UTC

# Line 24 | Line 24 | class Publisher(Actor):
24          """
25  
26          try:
27 <            self.processedData = cfg_params['USER.publish_data_name']
27 >            userprocessedData = cfg_params['USER.publish_data_name']
28 >            self.processedData = None
29          except KeyError:
30              raise CrabException('Cannot publish output data, because you did not specify USER.publish_data_name parameter in the crab.cfg file')
31  
# Line 134 | Line 135 | class Publisher(Actor):
135          common.logger.debug(6,"DatasetInfo = " + str(datasets))
136          for dataset in datasets:
137              #### for production data
138 +            self.processedData = dataset['ProcessedDataset']
139              if (dataset['PrimaryDataset'] == 'null'):
140                  dataset['PrimaryDataset'] = dataset['ProcessedDataset']
141              else: # add parentage from input dataset
# Line 184 | Line 186 | class Publisher(Actor):
186                  self.noLFN.append(file['PFN'])
187              else:
188                  if int(file['TotalEvents']) != 0 :
189 <                    file.lumisections = {}
189 >                    #file.lumisections = {}
190 >                    # lumi info are now in run hash
191 >                    file.runs = {}
192                      for ds in file.dataset:
193 <                        ds['ProcessedDataset']=procdataset
193 >                        ### FEDE FOR NEW LFN ###
194 >                        #ds['ProcessedDataset']=procdataset
195 >                        ########################
196                          ### Fede for production
197                          if (ds['PrimaryDataset'] == 'null'):
198                              ds['PrimaryDataset']=procdataset

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines