11"""Types around the PEtab object model."""
2+
23from __future__ import annotations
34
45from 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+
9298assert 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-
114104class Observable (BaseModel ):
115105 """Observable definition."""
116106
0 commit comments