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

Comparing COMP/CRAB/python/Reporter.py (file contents):
Revision 1.19 by fanzago, Wed Sep 5 16:02:43 2012 UTC vs.
Revision 1.20 by fanzago, Fri Sep 21 13:44:13 2012 UTC

# Line 73 | Line 73 | class Reporter(Actor):
73              compactList = lumiList.getCompactList()
74              #print "compactList = ", compactList
75  
76 <            totalLumiFilename = self.fjrDirectory + 'InputLumiSummaryOfTask.json'
76 >            totalLumiFilename = self.fjrDirectory + 'inputLumiSummaryOfTask.json'
77              totalLumiSummary = open(totalLumiFilename, 'w')
78              json.dump(compactList, totalLumiSummary)
79              totalLumiSummary.write('\n')
80              totalLumiSummary.close()
81 +            msg = "Summary file of input run and lumi to be analize with this task: %s\n" % totalLumiFilename
82 +            common.logger.info(msg)
83          return totalLumiFilename
84  
85      def compareJsonFile(self,inputJsonFile):
86  
87          #if (self.fjrDirectory + 'lumiSummary.json'):
88          reportFileName = self.fjrDirectory + 'lumiSummary.json'
89 <        command = 'compareJSON.py --sub ' + inputJsonFile + ' ' + reportFileName + ' ' + self.fjrDirectory + 'missingLumiSummary.json'
89 >        missingLumiFile=self.fjrDirectory + 'missingLumiSummary.json'
90 >        command = 'compareJSON.py --sub ' + inputJsonFile + ' ' + reportFileName + ' ' + missingLumiFile
91          #common.logger.info(command)
92          os.system(command)
93 +        msg = "json file containing the difference in run and lumi between input and analyzed files: %s\n" % missingLumiFile
94 +        common.logger.info(msg)
95          return
96  
97      def run(self):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines