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

assign site dof properly

parent 9fdc0c28
No related branches found
No related tags found
1 merge request!8Builder fixes
Pipeline #181628 failed
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
......@@ -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.
Finish editing this message first!
Please register or to comment