Skip to content
Snippets Groups Projects
Commit 75a0ffa0 authored by Kostas Vilkelis's avatar Kostas Vilkelis :flamingo:
Browse files

ensure random arguments in test

parent 3f703601
No related branches found
No related tags found
1 merge request!5Release version
......@@ -8,12 +8,6 @@ from pymf.tb import utils
from pymf.tb.tb import add_tb, compare_dicts
# %%
cutoff = np.random.randint(1, 4)
dim = np.random.randint(0, 3)
ndof = np.random.randint(2, 10)
filling = np.random.randint(1, ndof)
random_hopping_vecs = utils.generate_vectors(cutoff, dim)
zero_key = tuple([0] * dim)
repeat_number = 10
......@@ -22,6 +16,14 @@ repeat_number = 10
def test_zero_hint(seed):
"""Test the zero interaction case for the tight-binding model."""
np.random.seed(seed)
cutoff = np.random.randint(1, 4)
dim = np.random.randint(0, 3)
ndof = np.random.randint(2, 10)
filling = np.random.randint(1, ndof)
random_hopping_vecs = utils.generate_vectors(cutoff, dim)
zero_key = tuple([0] * dim)
h_0_random = utils.generate_guess(random_hopping_vecs, ndof, scale=1)
h_int_only_phases = utils.generate_guess(random_hopping_vecs, ndof, scale=0)
guess = utils.generate_guess(random_hopping_vecs, ndof, scale=1)
......
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