else: extractStats = True ave = [] if kpitype == "Slice": d = pvutils.createSlice(metrichash, dataReader, readerDisplay, individualImages) elif kpitype == "Clip": d = pvutils.createClip(metrichash, dataReader, readerDisplay, individualImages) elif kpitype == "Probe": d = pvutils.createProbe(metrichash, dataReader) elif kpitype == "Line": d, ave = pvutils.createLine(metrichash, kpi, dataReader, outputDir) elif kpitype == "StreamLines": d = pvutils.createStreamTracer(metrichash, dataReader, readerDisplay, individualImages) elif kpitype == "Volume": d = pvutils.createVolume(metrichash, dataReader) elif kpitype == "Basic": d = pvutils.createBasic(metrichash, dataReader, readerDisplay, individualImages) if kpifield == "None": extractStats = False if extractStats: #pvutils.extractStatsOld(d, kpi, kpifield, kpiComp, kpitype, fp_csv_metrics, ave) pvutils.extractStats(d, kpi, kpifield, kpiComp, kpitype, fp_csv_metrics) if individualImages: if kpiimage != "None" and kpiimage != "" and kpiimage != "plot":
if kpiimage != "None" and kpiimage != "plot": pvutils.adjustCamera(kpiimage, renderView1, metrichash) print(kpi) ave = [] if kpitype == "Slice": d = pvutils.createSlice(metrichash, dataReader, readerDisplay) elif kpitype == "Clip": d = pvutils.createClip(metrichash, dataReader, readerDisplay) elif kpitype == "Probe": d = pvutils.createProbe(metrichash, dataReader) elif kpitype == "Line": d = pvutils.createLine(metrichash, dataReader, outputDir, caseNumber) elif kpitype == "StreamLines": d = pvutils.createStreamTracer(metrichash, dataReader, readerDisplay) elif kpitype == "Volume": d = pvutils.createVolume(metrichash, dataReader) elif kpitype == "Basic": d = pvutils.createBasic(metrichash, dataReader, readerDisplay) if extractStats: pvutils.extractStats(d, kpi, kpifield, kpiComp, kpitype, fp_csv_metrics) if kpiimage != "None" and kpiimage != "plot": if not (os.path.exists(outputDir)): os.makedirs(outputDir) if caseNumber: metrichash['imageName'] = metrichash['imageName'].format( int(caseNumber))