From b96bb45b3a2d173d0fc8319c7229389887ca532a Mon Sep 17 00:00:00 2001
From: Christoph Groth <christoph.groth@cea.fr>
Date: Wed, 8 May 2013 15:06:57 +0200
Subject: [PATCH] fix builder.NoSymmetry.act ;-)

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

diff --git a/kwant/builder.py b/kwant/builder.py
index 3c0bc3e6..91cdaea0 100644
--- a/kwant/builder.py
+++ b/kwant/builder.py
@@ -271,6 +271,7 @@ class NoSymmetry(Symmetry):
     def act(self, element, a, b=None):
         if element:
             raise ValueError('`element` must be empty for NoSymmetry.')
+        return a if b is None else (a, b)
 
     def to_fd(self, a, b=None):
         return a if b is None else (a, b)
-- 
GitLab