Skip to content
Snippets Groups Projects
Commit add7d62e authored by Antonio Manesco's avatar Antonio Manesco
Browse files

assign site dof properly

parent 9fdc0c28
Branches
Tags
1 merge request!8Builder fixes
Pipeline #181628 failed
......@@ -29,10 +29,10 @@ def test_kwant_conversion(seed):
dummy_tb = kwant.Builder(kwant.TranslationalSymmetry(*n_cells * lattice.prim_vecs))
for site in range(sites_in_cell):
for sublattice in lattice.sublattices:
for i, sublattice in enumerate(lattice.sublattices):
for n in range(n_cells):
dummy_tb[sublattice(site, *[n for _ in range(ndim - 1)])] = (
np.eye(sum(ndof_per_site)) * 2
np.eye(ndof_per_site[i]) * 2
)
# generate random and generate builder from it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment