Skip to content
Snippets Groups Projects
Commit 17e0aa5b authored by Joseph Weston's avatar Joseph Weston
Browse files

update rng in test to take list, rather than dict

parent acb1f79e
No related branches found
No related tags found
No related merge requests found
...@@ -302,7 +302,7 @@ def test_finalization(): ...@@ -302,7 +302,7 @@ def test_finalization():
def set_hops(dest, sites): def set_hops(dest, sites):
while len(dest) < n_hops: while len(dest) < n_hops:
a, b = rng.sample(sites, 2) a, b = rng.sample(list(sites), 2)
if (a, b) not in dest and (b, a) not in dest: if (a, b) not in dest and (b, a) not in dest:
dest[a, b] = random_hopping_integral(rng) dest[a, b] = random_hopping_integral(rng)
......
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