We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4238417 commit 00e7bd8Copy full SHA for 00e7bd8
1 file changed
bindings/SofaRuntime/package/__init__.py
@@ -18,6 +18,21 @@
18
###################### MODULES INPORTS & UNLOAD FEATURES ######################
19
###############################################################################
20
21
+
22
+try:
23
+ import numpy
24
+except ModuleNotFoundError as error:
25
+ Sofa.msg_error("SofaRuntime",str(error))
26
+ Sofa.msg_error("SofaRuntime", 'numpy is mandatory for SofaPython3')
27
+ sys.exit(1)
28
29
30
+ import scipy
31
32
+ Sofa.msg_warning("SofaRuntime",str(error))
33
+ Sofa.msg_warning("SofaRuntime", "scipy is strongly recommended for SofaPython3")
34
+ pass
35
36
# Keep a list of the modules always imported in the Sofa-PythonEnvironment
37
try:
38
__SofaPythonEnvironment_importedModules__
0 commit comments