Skip to content
Snippets Groups Projects
Commit 7e00a933 authored by Christoph Groth's avatar Christoph Groth
Browse files

make examples/square.py work again

parent 9945ee54
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ from matplotlib import pyplot
import kwant
from kwant.physics.selfenergy import square_self_energy
__all__ = ['System' ]
__all__ = ['System']
class Lead(object):
def __init__(self, width, t, potential):
......@@ -16,7 +16,7 @@ class Lead(object):
self.t = t
self.potential = potential
def self_energy(self, fermi_energy):
def self_energy(self, fermi_energy, args=()):
return square_self_energy(self.width, self.t, self.potential,
fermi_energy)
......
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