Skip to content
Snippets Groups Projects
Commit 59488a30 authored by Joseph Weston's avatar Joseph Weston Committed by Christoph Groth
Browse files

corrected documentation for `kwant.system.InfiniteSystem.self_energy`

parent 82df7d17
No related branches found
No related tags found
No related merge requests found
......@@ -148,8 +148,9 @@ class InfiniteSystem(System):
def self_energy(self, energy, args=()):
"""Return self-energy of a lead.
The returned matrix has the shape (n, n), where n is
``sum(self.num_orbitals(i) for i in range(self.slice_size))``.
The returned matrix has the shape (s, s), where s is
``sum(self.num_orbitals(i)
for i in range(self.graph.num_nodes - self.slice_size))``.
"""
ham = self.slice_hamiltonian(args=args)
shape = ham.shape
......
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