Skip to content

Commit 7e021ce

Browse files
committed
..
1 parent ac77767 commit 7e021ce

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

petab/v2/core.py

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Types around the PEtab object model."""
2+
23
from __future__ import annotations
34

45
from enum import Enum
@@ -73,10 +74,10 @@ class NoiseDistribution(str, Enum):
7374
LAPLACE = C.LAPLACE
7475

7576

76-
class ObjectivePriorType(str, Enum):
77-
"""Objective prior types.
77+
class PriorType(str, Enum):
78+
"""Prior types.
7879
79-
Objective prior types as used in the PEtab parameters table.
80+
Prior types as used in the PEtab parameters table.
8081
"""
8182

8283
NORMAL = C.NORMAL
@@ -89,28 +90,17 @@ class ObjectivePriorType(str, Enum):
8990
PARAMETER_SCALE_UNIFORM = C.PARAMETER_SCALE_UNIFORM
9091

9192

93+
#: Objective prior types as used in the PEtab parameters table.
94+
ObjectivePriorType = PriorType
95+
#: Initialization prior types as used in the PEtab parameters table.
96+
InitializationPriorType = PriorType
97+
9298
assert set(C.PRIOR_TYPES) == {e.value for e in ObjectivePriorType}, (
9399
"ObjectivePriorType enum does not match C.PRIOR_TYPES: "
94100
f"{set(C.PRIOR_TYPES)} vs { {e.value for e in ObjectivePriorType} }"
95101
)
96102

97103

98-
class InitializationPriorType(str, Enum):
99-
"""Initialization prior types.
100-
101-
Initialization prior types as used in the PEtab parameters table.
102-
"""
103-
104-
NORMAL = C.NORMAL
105-
LAPLACE = C.LAPLACE
106-
UNIFORM = C.UNIFORM
107-
LOG_NORMAL = C.LOG_NORMAL
108-
LOG_LAPLACE = C.LOG_LAPLACE
109-
PARAMETER_SCALE_NORMAL = C.PARAMETER_SCALE_NORMAL
110-
PARAMETER_SCALE_LAPLACE = C.PARAMETER_SCALE_LAPLACE
111-
PARAMETER_SCALE_UNIFORM = C.PARAMETER_SCALE_UNIFORM
112-
113-
114104
class Observable(BaseModel):
115105
"""Observable definition."""
116106

0 commit comments

Comments
 (0)