Commit 5d92e374 authored by Jorn Baayen's avatar Jorn Baayen

__init__.py: Change warning when casadi could not be imported to reflect the...

__init__.py:  Change warning when casadi could not be imported to reflect the resulting runtime issues.
parent d1725810
......@@ -18,7 +18,7 @@ except ImportError:
import warnings
import sys
warnings.warn("CasADi not found. Building with mock CasADi instead. This will result in problems.")
warnings.warn("CasADi not found. Please ensure that casadi can be imported before running RTC-Tools.")
MOCK_MODULES = ['casadi', 'pyfmi', 'pyfmi.fmi', 'pymodelica', 'pymodelica.compiler', 'pymodelica.compiler_exceptions', 'pyjmi', 'pylab', 'scipy', 'scipy.interpolate']
sys.modules.update((mod_name, MagicMock()) for mod_name in MOCK_MODULES)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment