Skip to content

Commit 66dbde0

Browse files
committed
update readme, news, actions and version number for new release
1 parent 9c214ab commit 66dbde0

File tree

8 files changed

+24
-17
lines changed

8 files changed

+24
-17
lines changed

.github/workflows/black.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
lint:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
- uses: psf/black@stable
1414
with:
1515
options: "--verbose"

.github/workflows/python-package.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,31 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ['3.7', '3.8', '3.9', '3.10']
18+
python-version: ['3.10', '3.11']
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
22+
2223
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v5
2425
with:
2526
python-version: ${{ matrix.python-version }}
27+
2628
- name: Install dependencies
2729
run: |
2830
python -m pip install --upgrade pip
29-
python -m pip install flake8 pytest
30-
python -m pip install numpy
31+
python -m pip install flake8 pytest numpy
32+
3133
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3234
python -m pip install .
35+
3336
- name: Lint with flake8
3437
run: |
3538
# stop the build if there are Python syntax errors or undefined names
3639
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3740
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3841
flake8 . --count --ignore=C901,E201,E203,E501,N801,N802,N803,N806,E241 --exit-zero --max-complexity=10 --max-line-length=127 --statistics
42+
3943
- name: Test with pytest
4044
run: |
4145
pytest

.github/workflows/python-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
17+
1718
- name: Set up Python
18-
uses: actions/setup-python@v2
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
@@ -1,3 +1,6 @@
1+
## v0.4.10, 10.2025
2+
* @sebastiantuinstra fixed issue #19: Iteration loop in p_hrho(h, rho) used incorrect value for convergence check.
3+
14
## v0.4.9, 05.2022
25
* fix issue with missing unit conversion in h_px and h_tx
36
* add tests for fixed bugs

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ In chronological order:
3131
- mohit0749
3232
- gonmolina
3333
- xjtu-blacksmith
34+
- sebastiantuinstra
3435

3536

3637
## Requirements

pyXSteam/XSteam.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,7 @@ def p_hrho(self, h, rho):
293293
p (float): pressure or NaN if arguments are out of range
294294
"""
295295
if rho <= 0.0:
296-
self.logger.error(
297-
"negative values for density rho not allowed %f", rho)
296+
self.logger.error("negative values for density rho not allowed %f", rho)
298297
raise ValueError("rho out of range")
299298
h = self._unit_converter.toSIunit_h(h)
300299
High_Bound = self._unit_converter.fromSIunit_p(100)
@@ -630,8 +629,7 @@ def vV_t(self, t):
630629
)
631630
else:
632631
return self._unit_converter.fromSIunit_v(
633-
Region3.v3_ph(Region4.p4_T(
634-
T), Region4.h4V_p(Region4.p4_T(T)))
632+
Region3.v3_ph(Region4.p4_T(T), Region4.h4V_p(Region4.p4_T(T)))
635633
)
636634
else:
637635
self.logger.warning("temperature %f out of range", T)
@@ -654,8 +652,7 @@ def vL_t(self, t):
654652
)
655653
else:
656654
return self._unit_converter.fromSIunit_v(
657-
Region3.v3_ph(Region4.p4_T(
658-
T), Region4.h4L_p(Region4.p4_T(T)))
655+
Region3.v3_ph(Region4.p4_T(T), Region4.h4L_p(Region4.p4_T(T)))
659656
)
660657
else:
661658
self.logger.warning("temperature %f out of range", T)

pyXSteam/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
this is the pyXSteam package"""
99

1010
name = "pyXSteam"
11-
__version__ = "0.4.9"
11+
__version__ = "0.4.10"

tests/test_fixedbugs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
"""
3-
"""
2+
""" """
43

54
import unittest
65
from pyXSteam.XSteam import XSteam

0 commit comments

Comments
 (0)