From 8f11802953f75a3f8057a00ccf7250e288ab09d9 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Mon, 23 Jan 2023 11:57:33 +0100 Subject: [PATCH] fix netgen.gui.Snapshot --- python/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/gui.py b/python/gui.py index 356cb0ea..1cd66155 100644 --- a/python/gui.py +++ b/python/gui.py @@ -57,7 +57,7 @@ if not netgen.libngpy._meshing._netgen_executable_started: def Snapshot(w,h, filename=None): netgen.Redraw(blocking=True) import numpy - image = netgen.libngpy.Snapshot(w, h) + image = netgen.libngguipy.Snapshot(w, h) image = numpy.array(image, dtype=numpy.uint8).reshape(h, w, 3) image = image[::-1,:,:] if filename: