Verified Commit eee02c2f authored by Adel Kara Slimane's avatar Adel Kara Slimane
Browse files

Update error message in EnergySiteValidator

parent 39565ebd
......@@ -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}
......
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