Skip to content
Snippets Groups Projects
Commit ded0e2c3 authored by Christoph Groth's avatar Christoph Groth
Browse files

always emit RuntimeWarnings

parent 378ea333
No related branches found
No related tags found
No related merge requests found
......@@ -301,14 +301,11 @@ class MUMPSContext(object):
if reuse_analysis:
if self.mumps_instance is None:
warnings.warn("Missing analysis although reuse_analysis=True. "
"New analysis is performed.",
RuntimeWarning)
"New analysis is performed.", RuntimeWarning)
self.analyze(a, ordering=ordering, overwrite_a=overwrite_a)
else:
dtype, row, col, data = _make_assembled_from_coo(a,
overwrite_a)
if self.dtype != dtype:
raise ValueError("MUMPSContext dtype and matrix dtype "
"incompatible!")
......
......@@ -32,10 +32,10 @@ try:
try:
from mpl_toolkits import mplot3d
except ImportError:
warnings.warn("3D plotting not available.")
warnings.warn("3D plotting not available.", RuntimeWarning)
except ImportError:
warnings.warn("matplotlib is not available, only iterator-providing"
"functions will work.")
"functions will work.", RuntimeWarning)
_mpl_enabled = False
from . import system, builder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment