From d6376586329847230f4027d08112026d4d6ecd8e Mon Sep 17 00:00:00 2001 From: "Federico E. Benelli" Date: Mon, 9 Dec 2024 16:52:05 -0300 Subject: [PATCH] blacked --- .../models/gibbs_excess/test_same_as_fortran.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/tests/models/gibbs_excess/test_same_as_fortran.py b/python/tests/models/gibbs_excess/test_same_as_fortran.py index a5c244dc..8afdc34f 100644 --- a/python/tests/models/gibbs_excess/test_same_as_fortran.py +++ b/python/tests/models/gibbs_excess/test_same_as_fortran.py @@ -150,9 +150,9 @@ def test_same_as_fortran(): ge_v, derivatives = model.excess_gibbs( n, temp, dt=True, dt2=True, dn=True, dtn=True, dn2=True ) - - ge_i= model.excess_gibbs(n, temp) - + + ge_i = model.excess_gibbs(n, temp) + assert np.isclose(ge_i, ge_v, rtol=1e-10) assert np.isclose(ge, ge_v, rtol=1e-10) assert np.isclose(get, derivatives["dt"], rtol=1e-10) @@ -163,7 +163,7 @@ def test_same_as_fortran(): # Test HE he_v, derivatives = model.excess_enthalpy(n, temp, dt=True, dn=True) - + he_i = model.excess_enthalpy(n, temp) assert np.isclose(he_i, he_v, rtol=1e-10) @@ -173,7 +173,7 @@ def test_same_as_fortran(): # Test SE se_v, derivatives = model.excess_entropy(n, temp, dt=True, dn=True) - + se_i = model.excess_entropy(n, temp) assert np.isclose(se_i, se_v, rtol=1e-10) @@ -183,7 +183,7 @@ def test_same_as_fortran(): # Test ln(gamma) lngamma_v, derivatives = model.ln_gamma(n, temp, dt=True, dn=True) - + lngamma_i = model.ln_gamma(n, temp) assert np.allclose(lngamma_i, lngamma_v, rtol=1e-10)