From 84f2e1b4e73a714244cac5a3451458e12c4052f6 Mon Sep 17 00:00:00 2001
From: Anton Akhmerov <anton.akhmerov@gmail.com>
Date: Tue, 3 Sep 2013 15:22:29 +0200
Subject: [PATCH] drop scipy 0.8 compatibility code

---
 kwant/physics/leads.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/kwant/physics/leads.py b/kwant/physics/leads.py
index d6efcad..e7335a1 100644
--- a/kwant/physics/leads.py
+++ b/kwant/physics/leads.py
@@ -448,12 +448,7 @@ def make_proper_modes(lmbdainv, psi, extract, tol=1e6):
         # orthogonalized. Moreover for the velocity to have a proper value the
         # modes should also be normalized.
 
-        # Note: Here's a workaround for the fact that the interface
-        # to qr changed from SciPy 0.8.0 to 0.9.0
-        try:
-            q, r = la.qr(full_psi[:, indx], econ=True, mode='qr')
-        except TypeError:
-            q, r = la.qr(full_psi[:, indx], mode='economic')
+        q, r = la.qr(full_psi[:, indx], mode='economic')
 
         # If the eigenvectors were purely real up to this stage,
         # they will typically become complex after the rotation.
-- 
GitLab