From ca6e5ad26b2e68ea597a73a0a2bc18613930a68b Mon Sep 17 00:00:00 2001 From: Joseph Weston <joseph.weston08@gmail.com> Date: Tue, 21 Nov 2017 13:55:29 +0100 Subject: [PATCH] correct reported hopping direction in discretizer Previously, the wording of the explanatory comment above discretized hopping functions was confusing. Now we are clear about where the hopping originates. Fixes #173. --- kwant/continuum/discretizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kwant/continuum/discretizer.py b/kwant/continuum/discretizer.py index 45784297..cac78399 100644 --- a/kwant/continuum/discretizer.py +++ b/kwant/continuum/discretizer.py @@ -65,7 +65,7 @@ class _DiscretizedBuilder(builder.Builder): else: a, b = key assert a is site - result.extend(["# Hopping in direction ", + result.extend(["# Hopping from ", str(tuple(b.tag)), ":\n"]) result.append(val._source if callable(val) else repr(val)) -- GitLab