Skip to content

Commit 29d2da0

Browse files
authored
Merge branch 'main' into goodness_of_fit_fix
2 parents 7757a1d + 7a60b2e commit 29d2da0

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33

44
## 0.8 series
55

6+
### 0.8.2
7+
8+
**Fixes**
9+
* We now support pandas>=3.0
10+
(by @dweindl in https://github.com/PEtab-dev/libpetab-python/pull/471)
11+
* Updated to the latest PEtab v2 schema
12+
(by @dweindl in https://github.com/PEtab-dev/libpetab-python/pull/470)
13+
* Fixed some warnings
14+
(by @dweindl in https://github.com/PEtab-dev/libpetab-python/pull/475)
15+
16+
**Full Changelog**: https://github.com/PEtab-dev/libpetab-python/compare/v0.8.1...v0.8.2
17+
618
### 0.8.1
719

820
The only change in this release is requiring pandas<3 until we support

petab/__init__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ def __getattr__(name):
2626
return importlib.import_module("petab.v1")
2727
if name == "v2":
2828
return importlib.import_module("petab.v2")
29-
if name not in ("__path__", "__all__", "__wrapped__"):
29+
if name not in (
30+
"__path__",
31+
"__all__",
32+
"__wrapped__",
33+
# accessed under pytest
34+
"_pytestfixturefunction",
35+
"__test__",
36+
"__bases__",
37+
):
3038
warn(
3139
f"Accessing `petab.{name}` is deprecated and will be removed in "
3240
f"the next major release. Please use `petab.v1.{name}` instead.",

petab/v2/petab1to2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def update_prior(row):
494494
if new_prior_type == "log10-normal":
495495
warnings.warn(
496496
f"Prior distribution `{new_prior_type}' for parameter "
497-
f"`{row.name}' is not supported in PEtab v2. "
497+
f"`{row[v1.C.PARAMETER_ID]}' is not supported in PEtab v2. "
498498
"Using `log-normal` instead.",
499499
# call to `petab1to2`
500500
stacklevel=9,
@@ -504,7 +504,7 @@ def update_prior(row):
504504
if new_prior_type not in v2.C.PRIOR_DISTRIBUTIONS:
505505
raise NotImplementedError(
506506
f"PEtab v2 does not support prior type `{new_prior_type}' "
507-
f"required for parameter `{row.name}'."
507+
f"required for parameter `{row[v1.C.PARAMETER_ID]}'."
508508
)
509509

510510
return new_prior_type

petab/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""PEtab library version"""
22

3-
__version__ = "0.8.1"
3+
__version__ = "0.8.2"

0 commit comments

Comments
 (0)