Skip to content

Commit 9458109

Browse files
committed
Merge branch 'master' into modernisation
2 parents 6d4455d + cb895c5 commit 9458109

File tree

6 files changed

+20
-7
lines changed

6 files changed

+20
-7
lines changed

.github/workflows/black.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ jobs:
99
lint:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
- uses: psf/black@stable

.github/workflows/python-package.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ jobs:
1313
build:
1414

1515
runs-on: ubuntu-latest
16+
1617
strategy:
1718
matrix:
1819
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1920

2021
steps:
2122
- uses: actions/checkout@v4
22-
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
2426
with:
2527
python-version: ${{ matrix.python-version }}
2628

.github/workflows/python-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17+
1718
- name: Set up Python
18-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
1920
with:
2021
python-version: '3.x'
22+
2123
- name: Install dependencies
2224
run: |
2325
python -m pip install --upgrade pip
2426
pip install setuptools wheel twine
27+
2528
- name: Build and publish
2629
env:
2730
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

NEWS.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
* switch to pyproject.toml
88
** move file location of demo scripts
99

10+
## v0.4.10, 10.2025
11+
* @sebastiantuinstra fixed issue #19: Iteration loop in p_hrho(h, rho) used incorrect value for convergence check.
12+
1013
## v0.4.9, 05.2022
1114
* fix issue with missing unit conversion in h_px and h_tx
1215
* add tests for fixed bugs

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ pyXSteam is a Python library designed for calculating thermodynamic properties o
44

55
This library was ported from the original Matlab released by Magnus Holmgren. The original can be founbd at [Sourceforge](http://xsteam.sourceforge.net) and/or <http://www.x-eng.com>.
66

7-
pyXSteam and XSteam provide (mostly) accurate steam and water properties from 0 - 1000 bar and from 0 - 2000 °C according to the [IAPWS release IF-97 (R7-97(2012))](http://www.iapws.org/relguide/IF97-Rev.pdf) . For accuracy of the functions in different regions see IF-97 Page 4. We take no responsibilities for any errors in the code or damage thereby!
7+
A .NET implementation is availible thanks to the work of rogerlew here: [XSteamNET](https://github.com/rogerlew/XSteamNET).
8+
9+
XSteam provides (mostly) accurate steam and water properties from 0 -
10+
1000 bar and from 0 - 2000 °C according to the [IAPWS release IF-97](http://www.iapws.org/relguide/IF97-Rev.pdf). For
11+
accuracy of the functions in different regions see IF-97 Page 4
812

913
Also included are functions for thermal conductivity and viscosity which are not part of R7-97(2012).
1014

@@ -19,14 +23,15 @@ Some effort has been made to include the refined function of more recent release
1923
- IAPWS R14
2024

2125

22-
## Contributors
26+
## Contributors to pyXSteam
2327
In chronological order:
2428
- IAPWS
2529
- Magnus Holmgren
2630
- drunsinn
2731
- mohit0749
2832
- gonmolina
2933
- xjtu-blacksmith
34+
- sebastiantuinstra
3035

3136
## Documentation
3237

pyXSteam/XSteam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def p_hrho(self, h: float, rho: float) -> float:
347347

348348
rhos = 1 / self.v_ph(ps, h)
349349

350-
if last_rhos == rhos:
350+
if last_rhos == rho:
351351
self.logger.warning(
352352
"p_hrho stopped iterating after %d steps because values did not converge for input values h %f and rho %f",
353353
step_counter,

0 commit comments

Comments
 (0)