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

use args in self-energy leads

parent 3a0b1f82
No related branches found
No related tags found
No related merge requests found
...@@ -446,7 +446,7 @@ class SelfEnergy(Lead): ...@@ -446,7 +446,7 @@ class SelfEnergy(Lead):
---------- ----------
self_energy_func : function self_energy_func : function
Function which returns the self energy matrix for the interface sites 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 interface : sequence of `Site` instances
""" """
def __init__(self, self_energy_func, interface): def __init__(self, self_energy_func, interface):
...@@ -457,8 +457,8 @@ class SelfEnergy(Lead): ...@@ -457,8 +457,8 @@ class SelfEnergy(Lead):
"""Trivial finalization: the object is returned itself.""" """Trivial finalization: the object is returned itself."""
return self return self
def self_energy(self, energy): def self_energy(self, energy, args=()):
return self.self_energy_func(energy) return self.self_energy_func(energy, args)
################ Builder class ################ Builder class
......
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