Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 7, 2025
1 parent 09e1aa6 commit 28379be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions tests/test_atomdiag.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def do_assert(
assert pytest.approx(S2_expected, abs=abs) == S2


@pytest.fixture()
@pytest.fixture
def one_band():
U = 1
mu = U / 2.0 # half-filling
Expand All @@ -59,7 +59,7 @@ def one_band():
return spin_names, n_orb, Lambda_c, D, h0_loc_mat, h_int


@pytest.fixture()
@pytest.fixture
def one_band_expected():
rho_f_expected = np.array([[0.5]])
rho_cf_expected = np.array([[0.4681588161332029]])
Expand All @@ -77,7 +77,7 @@ def one_band_expected():
)


@pytest.fixture()
@pytest.fixture
def bilayer():
U = 1
V = 0.25
Expand All @@ -100,7 +100,7 @@ def bilayer():
return spin_names, n_orb, Lambda_c, D, h0_loc_mat, h_int


@pytest.fixture()
@pytest.fixture
def bilayer_expected():
rho_f_expected = np.array([[0.5, -0.1999913941210893], [-0.1999913941210893, 0.5]])
rho_cf_expected = np.array([[0.42326519677453511, 0], [0, 0.42326519677453511]])
Expand All @@ -118,7 +118,7 @@ def bilayer_expected():
)


@pytest.fixture()
@pytest.fixture
def dh_trimer():
# At two-thirds filling
U = 1
Expand Down Expand Up @@ -165,7 +165,7 @@ def hubb_N(tk, U, n_orb, spin_names): # noqa: ARG001
return spin_names, n_orb, Lambda_c, D, h0_loc_mat, h_int


@pytest.fixture()
@pytest.fixture
def dh_trimer_expected():
rho_f_expected = np.array(
[
Expand Down
6 changes: 3 additions & 3 deletions tests/test_latticesolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def do_assert(subtests, mu, Lambda, Z, mu_expected, Lambda_expected, Z_expected)
assert Z[i][bl] == pytest.approx(Z_expected, abs=abs)


@pytest.fixture()
@pytest.fixture
def one_band():
n_orb = 1
spatial_dim = 3
Expand All @@ -50,7 +50,7 @@ def one_band():
return gf_struct, h0_k, embedding, kweight, mu, Lambda_expected, Z_expected


@pytest.fixture()
@pytest.fixture
def bilayer():
U = 4
V = 0.25
Expand All @@ -77,7 +77,7 @@ def bilayer():
return gf_struct, h0_k, embedding, kweight, mu, Lambda_expected, Z_expected


@pytest.fixture()
@pytest.fixture
def kanamori():
coeff = 0.2
U = 3
Expand Down

0 comments on commit 28379be

Please sign in to comment.