Commit 9194f226 authored by Joseph Weston's avatar Joseph Weston
Browse files

update 'ldos' to use 'system.is_selfenergy_lead'

parent 74219a7e
......@@ -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.")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment