getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] [getfem-commits] branch devel-tetsuo-xml-binary-squash


From: Tetsuo Koyama
Subject: [Getfem-commits] [getfem-commits] branch devel-tetsuo-xml-binary-squash updated: Support for environments without pyvista
Date: Mon, 05 Oct 2020 00:41:06 -0400

This is an automated email from the git hooks/post-receive script.

tkoyama010 pushed a commit to branch devel-tetsuo-xml-binary-squash
in repository getfem.

The following commit(s) were added to refs/heads/devel-tetsuo-xml-binary-squash 
by this push:
     new f6bc812  Support for environments without pyvista
f6bc812 is described below

commit f6bc812a75f37ba1fe2c4d94c665e78310f1a2b3
Author: Tetsuo Koyama <tkoyama010@gmail.com>
AuthorDate: Mon Oct 5 12:43:04 2020 +0900

    Support for environments without pyvista
---
 interface/tests/python/check_export_vtu.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/interface/tests/python/check_export_vtu.py 
b/interface/tests/python/check_export_vtu.py
index f6118ee..d6c45f9 100644
--- a/interface/tests/python/check_export_vtu.py
+++ b/interface/tests/python/check_export_vtu.py
@@ -28,7 +28,13 @@
 """
 import getfem as gf
 import numpy as np
-import pyvista as pv
+import sys
+try:
+    import pyvista as pv
+except:
+    print("\n\n** Could not load pyvista. Did you install it ?\n")
+    print("   ( https://docs.pyvista.org/getting-started/installation.html ) 
**\n\n")
+    sys.exit()
 
 convex_connectivity = np.array([0, 1, 1, 2])
 mesh = gf.Mesh("cartesian", [0.0, 1.0, 2.0])



reply via email to

[Prev in Thread] Current Thread [Next in Thread]