From 789a575d4f02e1c20b01f931b35fc0fc7fa860b4 Mon Sep 17 00:00:00 2001 From: Anton Akhmerov <anton.akhmerov@gmail.com> Date: Mon, 26 May 2014 19:02:29 +0200 Subject: [PATCH] two minor bugfixes (in docs and tests) --- kwant/solvers/tests/_test_sparse.py | 2 +- kwant/system.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kwant/solvers/tests/_test_sparse.py b/kwant/solvers/tests/_test_sparse.py index 29704563..43300f94 100644 --- a/kwant/solvers/tests/_test_sparse.py +++ b/kwant/solvers/tests/_test_sparse.py @@ -356,7 +356,7 @@ def test_selfenergy_reflection(greens_function, smatrix): fsys = system.finalized() for sys in (fsys.precalculate(what='selfenergy'), fsys.precalculate(what='all')): - sol = greens_function(fsys, 0, (), [0], [0]) + sol = greens_function(sys, 0, (), [0], [0]) assert_almost_equal(sol.transmission(0,0), t.transmission(0,0)) assert_raises(ValueError, greens_function, fsys.precalculate(what='modes'), 0, (), [0], [0]) diff --git a/kwant/system.py b/kwant/system.py index 8497b811..49d12405 100644 --- a/kwant/system.py +++ b/kwant/system.py @@ -73,7 +73,7 @@ class FiniteSystem(System): For lead ``n``, the method leads[n].selfenergy must return a square matrix whose size is ``sum(len(self.hamiltonian(site, site)) for site in self.lead_interfaces[n])``. The output of ``leads[n].modes`` has to be a - tuple of `~kwant.physics.PropatatingModes, ~kwant.physics.StabilizedModes`. + tuple of `~kwant.physics.PropagatingModes, ~kwant.physics.StabilizedModes`. Often, the elements of `leads` will be instances of `InfiniteSystem`. If this is the case for lead ``n``, the sites ``lead_interfaces[n]`` match -- GitLab