Skip to content
Snippets Groups Projects
Commit 789a575d authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

two minor bugfixes (in docs and tests)

parent e3b0e19a
No related branches found
No related tags found
No related merge requests found
......@@ -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])
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment