diff --git a/kwant/builder.py b/kwant/builder.py index 424d5e55818ea2ce6a31831ef189952ceba22bc2..82462dc9dd53251914cbc8d09dfb15167ddbc7e7 100644 --- a/kwant/builder.py +++ b/kwant/builder.py @@ -446,7 +446,7 @@ class SelfEnergy(Lead): ---------- self_energy_func : function Function which returns the self energy matrix for the interface sites - given the energy. + given the energy and optionally a list of extra arguments. interface : sequence of `Site` instances """ def __init__(self, self_energy_func, interface): @@ -457,8 +457,8 @@ class SelfEnergy(Lead): """Trivial finalization: the object is returned itself.""" return self - def self_energy(self, energy): - return self.self_energy_func(energy) + def self_energy(self, energy, args=()): + return self.self_energy_func(energy, args) ################ Builder class