コード例 #1
0
ファイル: MergeBucket.py プロジェクト: stuartw/WMCore
 def mergeReport(self):
     """
     _mergeReport_
     
     read the merge report
     """
     reportInstance = Report(self.stepName)
     ReportReader.xmlToJobReport(reportInstance, os.path.join(self.workingDir, self.merge_report_file))
     return reportInstance
コード例 #2
0
ファイル: MergeBucket.py プロジェクト: ticoann/WMCore
    def mergeReport(self):
        """
        _mergeReport_

        read the merge report
        """
        reportInstance = Report(self.stepName)
        ReportReader.xmlToJobReport(
            reportInstance,
            os.path.join(self.workingDir, self.merge_report_file))
        return reportInstance
コード例 #3
0
ファイル: MulticoreReader.py プロジェクト: stuartw/WMCore
def readMultiJobReports(multiReportFile, stepName, directory):
    """
    _readMultiJobReports_
    
    Read a multi report and return a list of report instances indexed by it
    """
    result = []
    jobRepNode = ReportReader.xmlFileToNode(multiReportFile)
    for repNode in ReportReader.childrenMatching(jobRepNode, "FrameworkJobReport"):
        for childProcFiles in ReportReader.childrenMatching(repNode, "ChildProcessFiles"):
            for childRep in ReportReader.childrenMatching(childProcFiles, "ChildProcessFile"):
                fileName =  childRep.text
                if directory != None:
                    fileName = "%s/%s" % (directory, fileName)
                if os.path.exists(fileName):
                    reportInstance = Report(stepName)
                    ReportReader.xmlToJobReport(reportInstance, fileName)
                    result.append(reportInstance)

    return result
コード例 #4
0
ファイル: MulticoreReader.py プロジェクト: ticoann/WMCore
def readMultiJobReports(multiReportFile, stepName, directory):
    """
    _readMultiJobReports_

    Read a multi report and return a list of report instances indexed by it
    """
    result = []
    jobRepNode = ReportReader.xmlFileToNode(multiReportFile)
    for repNode in ReportReader.childrenMatching(jobRepNode, "FrameworkJobReport"):
        for childProcFiles in ReportReader.childrenMatching(repNode, "ChildProcessFiles"):
            for childRep in ReportReader.childrenMatching(childProcFiles, "ChildProcessFile"):
                fileName =  childRep.text
                if directory != None:
                    fileName = "%s/%s" % (directory, fileName)
                if os.path.exists(fileName):
                    reportInstance = Report(stepName)
                    ReportReader.xmlToJobReport(reportInstance, fileName)
                    result.append(reportInstance)

    return result