Skip to content

Commit 749c705

Browse files
dweindlclaude
andcommitted
Collect changelog entries as separate files using towncrier
Every pull request added its changelog entry at the same place in `CHANGELOG.md`, so concurrent pull requests conflicted with each other. Now, each pull request adds its entry as a separate file `changelog.d/+<name>.<type>.md` (see `changelog.d/README.md`). At release time, `towncrier build --version X.Y.Z` collects them into `CHANGELOG.md`. The unreleased 0.11.0 entry is moved to `changelog.d/`, and entries are added for #583, #584, #588, #590, #592 and #595, which did not add one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 7580974 commit 749c705

15 files changed

Lines changed: 152 additions & 11 deletions

‎CHANGELOG.md‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
# PEtab changelog
22

3-
## 0.11 series
3+
Changes that are not released yet are collected in
4+
[`changelog.d/`](https://github.com/PEtab-dev/libpetab-python/tree/main/changelog.d).
45

5-
### 0.11.0 (unreleased)
6+
## 0.11 series
67

7-
**Breaking changes**
8-
* Follow SPEC 0 instead of NEP 29 for minimum supported dependency versions.
9-
Require `numpy>=2.2`, and for the `vis` extra, `matplotlib>=3.10` and
10-
`scipy>=1.15`
11-
(by @dweindl in https://github.com/PEtab-dev/libpetab-python/pull/578)
8+
<!-- towncrier release notes start -->
129

1310
## 0.10 series
1411

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ General:
1313
* Please document all modules, functions, classes, attributes, arguments,
1414
return values, ... in a style consistent with the rest of the library
1515
* Use descriptive commit messages
16+
* For user-visible changes, add a changelog entry to `changelog.d/`
17+
(see [`changelog.d/README.md`](changelog.d/README.md))
1618

1719
To contribute to this repository:
1820

‎changelog.d/+bool2num.fix.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Non-constant Booleans in numeric context, e.g., `1 + (x > 0)`, failed
2+
with `TypeError`. They are now converted to `1.0` / `0.0`
3+
([#584](https://github.com/PEtab-dev/libpetab-python/pull/584))
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
`ExperimentsToSbmlConverter` converts `time` in condition target values to
2+
the SBML time csymbol instead of a constant parameter with value 0
3+
([#595](https://github.com/PEtab-dev/libpetab-python/pull/595))

‎changelog.d/+num2bool.fix.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Non-constant numeric expressions in Boolean context (operands of `&&`,
2+
`||`, `!`, `piecewise` conditions) were treated as always `true`.
3+
They are now `true` if non-zero, e.g., `!(x + 1)` is parsed to `x + 1 == 0`
4+
instead of `0.0`
5+
([#583](https://github.com/PEtab-dev/libpetab-python/pull/583))
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Fixed `KeyError` in `PySBModel.is_state_variable`, and thus in PEtab v2
2+
validation, for PySB species with binding sites; `(state, bond)` tuples,
3+
`MultiState`, lists of bonds, and complex-level compartments are now
4+
supported
5+
([#592](https://github.com/PEtab-dev/libpetab-python/pull/592))
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
`PySBModel.pattern_from_string` raises `ValueError` for unknown monomers,
2+
sites, states, or compartments, instead of returning an incomplete pattern
3+
([#592](https://github.com/PEtab-dev/libpetab-python/pull/592))
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
PEtab SciML extension: Hybridization target values are written and
2+
validated as PEtab math instead of sympy strings (e.g., `x^2` instead of
3+
`x**2.0`), so written hybridization tables can be read again
4+
([#590](https://github.com/PEtab-dev/libpetab-python/pull/590))

‎changelog.d/+spec0.breaking.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Follow SPEC 0 instead of NEP 29 for minimum supported dependency versions.
2+
Require `numpy>=2.2`, and for the `vis` extra, `matplotlib>=3.10` and
3+
`scipy>=1.15`
4+
([#578](https://github.com/PEtab-dev/libpetab-python/pull/578))
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
`sympify_petab` now returns top-level Boolean expressions as numeric
2+
expressions, e.g., `x > 0` as `Piecewise((1.0, x > 0), (0.0, True))`
3+
instead of a relational
4+
([#584](https://github.com/PEtab-dev/libpetab-python/pull/584))

0 commit comments

Comments
 (0)