Commit 6fc633f9 authored by Jérome Perrin's avatar Jérome Perrin

configure numpy to raise in case of errors

parent d837c106
......@@ -52,6 +52,12 @@ except ImportError:
sys.modules['scipy'] = scipy
logger.error("Scipy cannot be imported, using dummy implementation")
# By default numpy just prints on stderr when there's an error. We do not want
# to hide errors.
import numpy
numpy.seterr(all='raise')
from SimPy.Simulation import activate, initialize, simulate, now, infinity
from Globals import G
from Source import Source
......
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