Exemplo n.º 1
0
    plotListRep = {}
    reportD['Simulation Difference'] = {}
    reportD['Simulation Stats'] = {}
    # ++++++++++++++++++++++++++++

    # Plot data comparison for all output variables defined in suffix
    for var in outputVariable:
        plotDict = outQuickPlot.quickPlotBench(avaDir, simNameRef, simNameComp,
                                               refDir, compDir, cfgMain,
                                               cfgRep, var)
        for plot in plotDict['plots']:
            plotListRep.update({var: plot})
            reportD['Simulation Difference'].update(
                {var: plotDict['difference']})
            reportD['Simulation Stats'].update({var: plotDict['stats']})

    # copy files to report directory
    print('plots', plotListRep)
    plotPaths = generateCompareReport.copyQuickPlots(avaName, test['NAME'],
                                                     outDir, plotListRep)
    aimecPlots = [resAnalysis['slCompPlot'], resAnalysis['areasPlot']]
    plotPaths = generateCompareReport.copyAimecPlots(aimecPlots, test['NAME'],
                                                     outDir, plotPaths)

    # add plot info to general report Dict
    reportD['Simulation Results'] = plotPaths

    # write report
    generateCompareReport.writeCompareReport(reportFile, reportD, benchDict,
                                             avaName, cfgRep)
Exemplo n.º 2
0
            # copy files to report directory
            plotPaths = generateCompareReport.copyQuickPlots(avaName,
                                                             avaName,
                                                             outDirReport,
                                                             plotListRep,
                                                             rel=rel)
            aimecPlots = [resAnalysis['slCompPlot'], resAnalysis['areasPlot']]
            if cfgAimec.getboolean('FLAGS', 'flagMass'):
                aimecPlots.append(resAnalysis['massAnalysisPlot'])
            plotPaths = generateCompareReport.copyAimecPlots(aimecPlots,
                                                             avaName,
                                                             outDirReport,
                                                             plotPaths,
                                                             rel=rel)

            # add plot info to general report Dict
            reportDcom1DFA['Simulation Results'] = plotPaths

            reportDcom1DFAOrig['Test Info'] = {
                'type':
                'text',
                'Test Info':
                'Compare com1DFAOrig (Reference) to com1DFA (Simulation) results.'
            }

            # write report
            generateCompareReport.writeCompareReport(reportFile,
                                                     reportDcom1DFA,
                                                     reportDcom1DFAOrig,
                                                     avaName, cfgRep)