Commit 483bf300 authored by Joseph Weston's avatar Joseph Weston
Browse files

correct vectorized builder test

We had forgotten to pass the 'vectorized' flag when constructing
a Builder with a symmetry
parent 2efd9a7e
......@@ -464,7 +464,8 @@ def test_finalization(vectorize):
assert tuple(fsyst.sites) == tuple(sorted(fam(*site) for site in sr_sites))
# Build lead from blueprint and test it.
lead = builder.Builder(kwant.TranslationalSymmetry((size, 0)))
lead = builder.Builder(kwant.TranslationalSymmetry((size, 0)),
for site, value in lead_sites.items():
shift = rng.randrange(-5, 6) * size
site = site[0] + shift, site[1]
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