Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Wimmer
kwant
Commits
91f98550
Commit
91f98550
authored
11 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
raise exception when ldos is called without check_hermiticity
parent
febe845c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kwant/solvers/common.py
+5
-1
5 additions, 1 deletion
kwant/solvers/common.py
with
5 additions
and
1 deletion
kwant/solvers/common.py
+
5
−
1
View file @
91f98550
...
...
@@ -459,11 +459,15 @@ class SparseSolver(object):
ldos : a NumPy array
Local density of states at each orbital of the system.
"""
if
not
check_hermiticity
:
raise
NotImplementedError
(
"
ldos for non-Hermitian Hamiltonians
"
"
is not implemented yet.
"
)
for
lead
in
sys
.
leads
:
if
not
hasattr
(
lead
,
'
modes
'
):
# TODO: fix this
raise
NotImplementedError
(
"
ldos for leads with only
"
"
self-energy is not implemented yet
"
)
"
self-energy is not implemented yet
.
"
)
linsys
,
lead_info
=
\
self
.
_make_linear_sys
(
sys
,
xrange
(
len
(
sys
.
leads
)),
energy
,
args
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment