From 4187314a00803fd5f17de057a04dd086d1729aff Mon Sep 17 00:00:00 2001
From: Christoph Groth <christoph.groth@cea.fr>
Date: Thu, 9 Apr 2015 16:32:43 +0200
Subject: [PATCH] check ABC of system in wave_function

---
 kwant/solvers/common.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kwant/solvers/common.py b/kwant/solvers/common.py
index 090ac31f..6abd9607 100644
--- a/kwant/solvers/common.py
+++ b/kwant/solvers/common.py
@@ -545,6 +545,7 @@ class SparseSolver(object):
 
 class WaveFunction(object):
     def __init__(self, solver, sys, energy, args, check_hermiticity):
+        ensure_isinstance(sys, system.System)
         for lead in sys.leads:
             if not hasattr(lead, 'modes'):
                 # TODO: figure out what to do with self-energies.
-- 
GitLab