From 758c85403315394f22024695d1160ad1078e3355 Mon Sep 17 00:00:00 2001 From: Francesco Witte Date: Sun, 3 Dec 2023 12:45:49 +0100 Subject: [PATCH] Bump up CoolProp dependency and remove incompressible fluid handling quickfix --- pyproject.toml | 2 +- src/tespy/tools/fluid_properties/wrappers.py | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index eb184e992..7f9b42cea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ classifiers = [ ] requires-python = ">=3.9" dependencies = [ - "CoolProp>=6.4,<7", + "CoolProp>=6.6,<7", "jinja2", "matplotlib>=3.2.1,<4", "numpy>=1.13.3,<2", diff --git a/src/tespy/tools/fluid_properties/wrappers.py b/src/tespy/tools/fluid_properties/wrappers.py index bc2f84df7..565c98bf4 100644 --- a/src/tespy/tools/fluid_properties/wrappers.py +++ b/src/tespy/tools/fluid_properties/wrappers.py @@ -191,15 +191,6 @@ def h_ps(self, p, s): return self.AS.hmass() def h_pT(self, p, T): - if self.back_end == "INCOMP": - if T == (self._T_max + self._T_min) / 2: - T += ERR - self.AS.update(CP.PT_INPUTS, p, T) - h = self.AS.hmass() * 0.5 - T -= 2 * ERR - self.AS.update(CP.PT_INPUTS, p, T) - h += self.AS.hmass() * 0.5 - return h self.AS.update(CP.PT_INPUTS, p, T) return self.AS.hmass()