Skip to content
Snippets Groups Projects
Commit 9194f226 authored by Joseph Weston's avatar Joseph Weston
Browse files

update 'ldos' to use 'system.is_selfenergy_lead'

parent 74219a7e
No related branches found
No related tags found
No related merge requests found
......@@ -552,7 +552,7 @@ class SparseSolver(metaclass=abc.ABCMeta):
"is not implemented yet.")
for lead in syst.leads:
if not hasattr(lead, 'modes') and hasattr(lead, 'selfenergy'):
if system.is_selfenergy_lead(lead):
# TODO: fix this
raise NotImplementedError("ldos for leads with only "
"self-energy is not implemented yet.")
......
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