Skip to content
Snippets Groups Projects
Commit 55fbb1f4 authored by Kostas Vilkelis's avatar Kostas Vilkelis :flamingo: Committed by Antonio Manesco
Browse files

Builder 0d fix

parent c9056806
No related branches found
No related tags found
1 merge request!19Builder 0d fix
......@@ -119,8 +119,10 @@ def tb_to_builder(
:
`kwant.builder.Builder` that corresponds to the tight-binding dictionary.
"""
builder = kwant.Builder(kwant.TranslationalSymmetry(*periods))
if periods == ():
builder = kwant.Builder()
else:
builder = kwant.Builder(kwant.TranslationalSymmetry(*periods))
onsite_idx = tuple([0] * len(list(h_0)[0]))
norbs_list = [site.family.norbs for site in sites_list]
......
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