Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kwant
tkwantoperator
Commits
eee02c2f
Verified
Commit
eee02c2f
authored
May 07, 2020
by
Adel Kara Slimane
Browse files
Update error message in EnergySiteValidator
parent
39565ebd
Changes
1
Hide whitespace changes
Inline
Side-by-side
tkwantoperator/energy.pyx
View file @
eee02c2f
...
...
@@ -50,7 +50,7 @@ class EnergySiteValidator:
@
cython
.
embedsignature
def
__init__
(
self
,
syst
):
if
not
isinstance
(
syst
,
kwant
.
system
.
FiniteSystem
):
raise
ValueError
(
"The argument given to 'syst' is not a kwant.system.FiniteSystem
or a kwant.system.InfiniteSystem
class instance."
)
raise
ValueError
(
"The argument given to 'syst' is not a kwant.system.FiniteSystem class instance."
)
self
.
syst
=
syst
self
.
interface_site_ids
=
{
site_id
for
interface
in
syst
.
lead_interfaces
for
site_id
in
interface
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment