Skip to content
Snippets Groups Projects
Commit 2f7d8aa8 authored by Anton Akhmerov's avatar Anton Akhmerov Committed by Christoph Groth
Browse files

fix examples/square

parent 36d37bae
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ from __future__ import division
import numpy as np
from matplotlib import pyplot
import kwant
from kwant.physics.selfenergy import square_selfenergy
from kwant.physics.leads import square_selfenergy
__all__ = ['System']
......@@ -16,14 +16,9 @@ class Lead(object):
self.t = t
self.potential = potential
<<<<<<< HEAD
def self_energy(self, fermi_energy, args=()):
return square_self_energy(self.width, self.t, self.potential,
=======
def selfenergy(self, fermi_energy):
return square_selfenergy(self.width, self.t, self.potential,
>>>>>>> modes
fermi_energy)
def selfenergy(self, fermi_energy, args=()):
return square_selfenergy(self.width, self.t,
self.potential + fermi_energy)
class System(kwant.system.FiniteSystem):
def __init__(self, shape, hopping,
......
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