Skip to content

Commit ffd670c

Browse files
committed
doc
1 parent 1ed5527 commit ffd670c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

petab/v1/distributions.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
"""Probability distributions used by PEtab."""
1+
"""Probability distributions used by PEtab.
2+
3+
This module provides a set of univariate probability distributions
4+
that can be used for sampling and evaluating the probability density
5+
function (PDF) and cumulative distribution function (CDF).
6+
Most of these distributions also support log transformations and truncation.
7+
8+
Not all distributions that can be represented by these classes are valid
9+
as PEtab parameter prior or noise distributions.
10+
"""
211

312
from __future__ import annotations
413

petab/v2/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,7 @@ def prior_dist(self) -> Distribution:
973973
log = False
974974

975975
if cls == Exponential:
976+
# `Exponential.__init__` does not accept the `log` parameter
976977
if log is not False:
977978
raise ValueError(
978979
"Exponential distribution does not support log "

0 commit comments

Comments
 (0)