From 97726da7939c0334af882ab97e09d73a4ab079d3 Mon Sep 17 00:00:00 2001 From: Francesco Witte Date: Thu, 5 Dec 2024 08:32:40 +0100 Subject: [PATCH 1/3] Remove outdated documentation download links --- README.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 2f1c4a556..14a9bc070 100644 --- a/README.rst +++ b/README.rst @@ -101,9 +101,7 @@ Documentation You can find the full documentation at `readthedocs `_. Use the `project site `_ of readthedocs to -choose the version of the documentation. Go to the -`download page `_ to -download different versions and formats (pdf, html, epub) of the documentation. +choose the version of the documentation. To get the latest news visit and follow our `website `_. From 59134fab6658238fed7dc1fe1cfaed2edb33e11a Mon Sep 17 00:00:00 2001 From: Francesco Witte Date: Fri, 6 Dec 2024 15:18:14 +0100 Subject: [PATCH 2/3] Fix the too small upper value specification for dp parameters --- docs/whats_new.rst | 1 + docs/whats_new/v0-7-8-001.rst | 10 ++++++++++ src/tespy/components/heat_exchangers/base.py | 10 ++++++---- src/tespy/components/heat_exchangers/condenser.py | 6 ++++-- 4 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 docs/whats_new/v0-7-8-001.rst diff --git a/docs/whats_new.rst b/docs/whats_new.rst index ccbad6bc2..a93d2e0af 100644 --- a/docs/whats_new.rst +++ b/docs/whats_new.rst @@ -3,6 +3,7 @@ What's New Discover notable new features and improvements in each release +.. include:: whats_new/v0-7-8-001.rst .. include:: whats_new/v0-7-8.rst .. include:: whats_new/v0-7-7.rst .. include:: whats_new/v0-7-6-001.rst diff --git a/docs/whats_new/v0-7-8-001.rst b/docs/whats_new/v0-7-8-001.rst new file mode 100644 index 000000000..a7f337e1c --- /dev/null +++ b/docs/whats_new/v0-7-8-001.rst @@ -0,0 +1,10 @@ +v0.7.8.post1 - Newton's Nature (December, 06, 2024) ++++++++++++++++++++++++++++++++++++++++++++++++++++ + +Bug Fixes +######### +- Fixed a too low upper value boundary for the new :code:`dp` parameter. + +Contributors +############ +- Francesco Witte (`@fwitte `__) diff --git a/src/tespy/components/heat_exchangers/base.py b/src/tespy/components/heat_exchangers/base.py index 2d4a6f75a..9e95dffd2 100644 --- a/src/tespy/components/heat_exchangers/base.py +++ b/src/tespy/components/heat_exchangers/base.py @@ -112,10 +112,12 @@ class HeatExchanger(Component): Outlet to inlet pressure ratio at cold side, :math:`pr/1`. dp1 : float, dict, :code:`"var"` - Inlet to outlet pressure delta at hot side, :math:`dp/\text{Pa}`. + Inlet to outlet pressure delta at hot side, unit is the network's + pressure unit!. dp2 : float, dict, :code:`"var"` - Inlet to outlet pressure delta at cold side, :math:`dp/\text{Pa}`. + Inlet to outlet pressure delta at cold side, unit is the network's + pressure unit!. zeta1 : float, dict, :code:`"var"` Geometry independent friction coefficient at hot side, @@ -255,11 +257,11 @@ def get_parameters(self): deriv=self.pr_deriv, func=self.pr_func, func_params={'pr': 'pr2', 'inconn': 1, 'outconn': 1}), 'dp1': dc_cp( - min_val=0, max_val=10000, num_eq=1, + min_val=0, max_val=1e15, num_eq=1, deriv=self.dp_deriv, func=self.dp_func, func_params={'dp': 'dp1', 'inconn': 0, 'outconn': 0}), 'dp2': dc_cp( - min_val=0, max_val=10000, num_eq=1, + min_val=0, max_val=1e15, num_eq=1, deriv=self.dp_deriv, func=self.dp_func, func_params={'dp': 'dp2', 'inconn': 1, 'outconn': 1}), 'zeta1': dc_cp( diff --git a/src/tespy/components/heat_exchangers/condenser.py b/src/tespy/components/heat_exchangers/condenser.py index 1d820eb32..4ebb837b6 100644 --- a/src/tespy/components/heat_exchangers/condenser.py +++ b/src/tespy/components/heat_exchangers/condenser.py @@ -112,10 +112,12 @@ class Condenser(HeatExchanger): Outlet to inlet pressure ratio at cold side, :math:`pr/1`. dp1 : float, dict, :code:`"var"` - Inlet to outlet pressure delta at hot side, :math:`dp/\text{Pa}`. + Inlet to outlet pressure delta at hot side, unit is the network's + pressure unit!. dp2 : float, dict, :code:`"var"` - Inlet to outlet pressure delta at cold side, :math:`dp/\text{Pa}`. + Inlet to outlet pressure delta at cold side, unit is the network's + pressure unit!. zeta1 : float, dict, :code:`"var"` Geometry independent friction coefficient at hot side, From b200218a567aed009d9e1db5e893102891fd2c99 Mon Sep 17 00:00:00 2001 From: Francesco Witte Date: Fri, 6 Dec 2024 15:19:04 +0100 Subject: [PATCH 3/3] Bump version --- pyproject.toml | 2 +- src/tespy/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3e6448223..93e6912a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ exclude = ["docs/_build"] [project] name = "tespy" -version = "0.7.8" +version = "0.7.8.post1" description = "Thermal Engineering Systems in Python (TESPy)" readme = "README.rst" authors = [ diff --git a/src/tespy/__init__.py b/src/tespy/__init__.py index 1dc7a6a3c..17f411783 100644 --- a/src/tespy/__init__.py +++ b/src/tespy/__init__.py @@ -3,7 +3,7 @@ import os __datapath__ = os.path.join(importlib.resources.files("tespy"), "data") -__version__ = '0.7.8 - Newton\'s Nature' +__version__ = '0.7.8.post1 - Newton\'s Nature' # tespy data and connections import from . import connections # noqa: F401