From 2e42722a09276a81fb3bd39905b2df0d3c4480b5 Mon Sep 17 00:00:00 2001 From: Morten Hammer Date: Sat, 25 Jan 2025 20:25:24 +0100 Subject: [PATCH] Corrected order of arguments for call to ideslenthalpysingle --- addon/pyTests/test_issues.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/addon/pyTests/test_issues.py b/addon/pyTests/test_issues.py index 9733a7c0..62bd3f8d 100644 --- a/addon/pyTests/test_issues.py +++ b/addon/pyTests/test_issues.py @@ -12,14 +12,14 @@ @mark.parametrize('eos', ALL_CUBIC) def test_pr_114(eos): - T = 300 + T = 300.0 eos = eos('ETOH,C2') if DIFFERENTIAL_RETURN_MODE == 'v3': - h1 = eos.idealenthalpysingle(1, T) + h1 = eos.idealenthalpysingle(T, 1) elif DIFFERENTIAL_RETURN_MODE == 'v2': - h1, = eos.idealenthalpysingle(1, T) - - h2, dh = eos.idealenthalpysingle(1, T, dhdt=True) + h1, = eos.idealenthalpysingle(T, 1) + + h2, dh = eos.idealenthalpysingle(T, 1, dhdt=True) assert check_eq(h1, h2) @mark.parametrize('EOS', [*ALL_CUBIC, saftvrmie]) @@ -34,8 +34,8 @@ def test_pr_191(EOS): if (EOS in ALL_SAFT) and (comp == 'PSEUDO'): continue eos = EOS(comp) if isinstance(eos, lee_kesler): continue - + v = eos.specific_volume(T, p, [1], phase=eos.VAPPH) _, dh_tp = eos.enthalpy(T, p, [1], phase=eos.VAPPH, dhdt=True) _, dh_tv = eos.enthalpy_tvp(T, v, [1], dhdt=True) - assert check_eq(dh_tp.dT, dh_tv.dT) \ No newline at end of file + assert check_eq(dh_tp.dT, dh_tv.dT)