diff --git a/kwant/solvers/tests/_test_sparse.py b/kwant/solvers/tests/_test_sparse.py index 2970456371c27b20ac194ba024ee69327c018112..43300f943dc7ff9c5cb9106d756dea4b2cbc57e0 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 8497b8111e013bd3720b74fd5f2ed42cfe571b7d..49d124057cf6a99dba92aa22a617d261a911de98 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