From ded0e2c3808a33ada0c95a9d15364035e9297e9d Mon Sep 17 00:00:00 2001
From: Christoph Groth <christoph.groth@cea.fr>
Date: Fri, 22 Feb 2013 12:16:55 +0100
Subject: [PATCH] always emit RuntimeWarnings

---
 kwant/linalg/mumps.py | 5 +----
 kwant/plotter.py      | 4 ++--
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/kwant/linalg/mumps.py b/kwant/linalg/mumps.py
index ad44a124..8f4be581 100644
--- a/kwant/linalg/mumps.py
+++ b/kwant/linalg/mumps.py
@@ -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!")
diff --git a/kwant/plotter.py b/kwant/plotter.py
index 85d10d9d..db915f8f 100644
--- a/kwant/plotter.py
+++ b/kwant/plotter.py
@@ -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
-- 
GitLab