if not (os.path.exists(outputDir)): os.makedirs(outputDir) SaveScreenshot(outputDir + "/out_" + kpi + ".png", magnification=magnification, quality=100) if 'animation' in metrichash: makeAnim = data_IO.str2bool(metrichash['animation']) else: makeAnim = False if makeAnim: pvutils.makeAnimation(outputDir, kpi, magnification) if 'blender' in metrichash: export2Blender = data_IO.str2bool(metrichash['blender']) else: export2Blender = False if export2Blender: try: blenderContext = metrichash['blendercontext'].split(",") except: blenderContext = [] try: renderBody = metrichash['blenderbody'].split(",") except: renderBody = False pvutils.exportx3d(outputDir, kpi, d, dataReader, renderBody, blenderContext) fp_csv_metrics.close()
str(datarange[0]), str(datarange[1])]) + "\n") if individualImages: if kpiimage != "None" and kpiimage != "" and kpiimage != "plot": if not (os.path.exists(outputDir)): os.makedirs(outputDir) SaveScreenshot(outputDir + "/out_" + kpi + ".png", magnification=magnification, quality=100) if 'animation' in metrichash: makeAnim = data_IO.str2bool(metrichash['animation']) else: makeAnim = False if makeAnim: pvutils.makeAnimation(outputDir, kpi, magnification) if 'blender' in metrichash: export2Blender = data_IO.str2bool(metrichash['blender']) else: export2Blender = False if export2Blender: pvutils.exportx3d(outputDir, kpi, d, dataReader) fp_csv_metrics.close() SaveScreenshot(outputDir + "/out_stl.png", magnification=magnification, quality=100)