Skip to content

Commit 9d534f2

Browse files
authored
Release v0.1.25
Merge pull request #116 from PEtab-dev/release_v0_1_25
2 parents 6e2a7c7 + 0fa2d93 commit 9d534f2

File tree

6 files changed

+22
-5
lines changed

6 files changed

+22
-5
lines changed

.ci_pip_reqs.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ sphinxcontrib-napoleon
77
sphinx-markdown-tables
88
sphinx-rtd-theme
99
recommonmark
10+
# https://github.com/spatialaudio/nbsphinx/issues/641
11+
Jinja2==3.0.3

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
## 0.1 series
44

5+
### 0.1.25
6+
* Fix for pytest 7.1 by @yannikschaelte in https://github.com/PEtab-dev/libpetab-python/pull/112
7+
* Fix jinja version by @dilpath in https://github.com/PEtab-dev/libpetab-python/pull/115
8+
* Add steady state constant by @dilpath in https://github.com/PEtab-dev/libpetab-python/pull/114
9+
10+
**Full Changelog**: https://github.com/PEtab-dev/libpetab-python/compare/v0.1.24...v0.1.25
11+
512
### 0.1.24
613

714
* Added method to generate condition-specific SBML models by @dweindl in

petab/C.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
This file contains constant definitions.
44
"""
55

6+
import math
7+
8+
69
# MEASUREMENTS
710

811
#:
@@ -20,6 +23,9 @@
2023
#:
2124
TIME = 'time'
2225

26+
#: Time value that indicates steady-state measurements
27+
TIME_STEADY_STATE = math.inf
28+
2329
#:
2430
OBSERVABLE_PARAMETERS = 'observableParameters'
2531

petab/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""PEtab library version"""
2-
__version__ = '0.1.24'
2+
__version__ = '0.1.25'

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def absolute_links(txt):
8282
'nbsphinx>=0.8.2',
8383
'm2r>=0.2.1',
8484
'ipython>=7.21.0',
85+
# https://github.com/spatialaudio/nbsphinx/issues/641
86+
'Jinja2==3.0.3',
8587
]
8688
}
8789
)

tests/test_calculate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ def test_calculate_residuals(models): # pylint: disable=W0621
202202
expected_residuals, _, _) = model
203203
residual_dfs = calculate_residuals(
204204
measurement_df, simulation_df, observable_df, parameter_df)
205-
assert set(residual_dfs[0][RESIDUAL]) == pytest.approx(
206-
expected_residuals)
205+
assert sorted(residual_dfs[0][RESIDUAL]) == \
206+
pytest.approx(sorted(expected_residuals))
207207

208208

209209
def test_calculate_non_normalized_residuals(models): # pylint: disable=W0621
@@ -215,8 +215,8 @@ def test_calculate_non_normalized_residuals(models): # pylint: disable=W0621
215215
residual_dfs = calculate_residuals(
216216
measurement_df, simulation_df, observable_df, parameter_df,
217217
normalize=False)
218-
assert set(residual_dfs[0][RESIDUAL]) == pytest.approx(
219-
expected_residuals_nonorm)
218+
assert sorted(residual_dfs[0][RESIDUAL]) == \
219+
pytest.approx(sorted(expected_residuals_nonorm))
220220

221221

222222
def test_calculate_chi2(models): # pylint: disable=W0621

0 commit comments

Comments
 (0)