Skip to content
Snippets Groups Projects
Commit 216e05fd authored by Michael Wimmer's avatar Michael Wimmer Committed by Christoph Groth
Browse files

bug fix: ldos would not work with precalculated leads

parent 40523683
No related branches found
No related tags found
No related merge requests found
......@@ -458,10 +458,10 @@ class SparseSolver(object):
Local density of states at each orbital of the system.
"""
for lead in fsys.leads:
if not isinstance(lead, system.InfiniteSystem):
if not hasattr(lead, 'modes'):
# TODO: fix this
raise ValueError("ldos only works when all leads are "
"tight binding systems.")
raise ValueError("ldos for leads with only self-energy "
"is not implemented yet")
linsys, lead_info = \
self._make_linear_sys(fsys, xrange(len(fsys.leads)), energy, args)
......
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