Skip to content

Conversation

@dweindl
Copy link
Member

@dweindl dweindl commented Dec 3, 2025

Add an explicit LogUniform distribution class.

The interpretation of the distribution parameter is different from the existing Uniform(a, b, log=True).

In PEtab v2, X ~ LogUniform(a, b) <=> ln(X) ~ Uniform(ln(a), ln(b)).

However, in PEtab v1, a parameterScaleUniform prior for a parameterScale=log parameter is interpreted as ln(X) ~ Uniform(a, b).

Add an explicit LogUniform distribution class.

The interpretation of the distribution parameter is different from the existing `Uniform(a, b, log=True)`.

In PEtab v2, X ~ LogUniform(a, b) <=> ln(X) ~ Uniform(ln(a), ln(b)).

However, in PEtab v1, a `parameterScaleUniform` prior for a parameterScale=log parameter is interpreted as ln(X) ~ Uniform(a, b).
@dweindl dweindl requested a review from a team as a code owner December 3, 2025 09:47
@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2025

Codecov Report

❌ Patch coverage is 61.90476% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.14%. Comparing base (5429412) to head (dd6e3d7).

Files with missing lines Patch % Lines
petab/v1/distributions.py 75.00% 4 Missing ⚠️
petab/v2/core.py 20.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #465      +/-   ##
==========================================
- Coverage   75.18%   75.14%   -0.05%     
==========================================
  Files          62       62              
  Lines        6856     6876      +20     
  Branches     1224     1225       +1     
==========================================
+ Hits         5155     5167      +12     
- Misses       1234     1241       +7     
- Partials      467      468       +1     

☔ View full report in Codecov by Sentry.
📢 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 self-assigned this Dec 3, 2025
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