Skip to content

v2: write -inf overrides instead of negative_infinity parameter - #633

Open
dweindl wants to merge 2 commits into
PEtab-dev:mainfrom
dweindl:reparametrize-neg-inf-override
Open

dweindl wants to merge 2 commits into
PEtab-dev:mainfrom
dweindl:reparametrize-neg-inf-override

Conversation

@dweindl

@dweindl dweindl commented Nov 26, 2026

Copy link
Copy Markdown
Member

petab.v2.reparametrize_log (and thus petab1to2(reparametrize=...)) now replaces 0 overrides of log-transformed placeholders by -inf in the measurement table, instead of adding a non-estimated parameter negative_infinity. PEtab 2.0 erratum E3 (PEtab-dev/PEtab#687) allows inf/-inf as numeric values in observableParameters and noiseParameters, so the helper parameter is no longer needed.

This changes the output of petab1to2(reparametrize=...), so the changelog entry is marked as breaking.

🤖 Generated with Claude Code

dweindl and others added 2 commits November 26, 2026 10:39
`reparametrize_log` (and `petab1to2(reparametrize=...)`) now replaces a
`0` override of a log-transformed placeholder by `-inf` in the
measurement table, which PEtab 2.0 allows as numeric override value,
instead of adding a non-estimated parameter `negative_infinity`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.22%. Comparing base (bacc686) to head (f5f19f1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #633      +/-   ##
==========================================
- Coverage   80.34%   80.22%   -0.12%     
==========================================
  Files          70       70              
  Lines        8505     8499       -6     
  Branches     1561     1559       -2     
==========================================
- Hits         6833     6818      -15     
- Misses       1180     1190      +10     
+ Partials      492      491       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dweindl
dweindl marked this pull request as ready for review November 26, 2026 09:59
@dweindl
dweindl requested a review from a team as a code owner November 26, 2026 10:00
@dweindl dweindl self-assigned this Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants