We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a514bfd commit ed6e576Copy full SHA for ed6e576
petab/v1/calculate.py
@@ -139,6 +139,14 @@ def calculate_residuals_for_table(
139
# apply scaling
140
observable = observable_df.loc[row[OBSERVABLE_ID]]
141
trafo = observable.get(OBSERVABLE_TRANSFORMATION, LIN)
142
+ # FIXME: for v2, the transformation is part of the noise
143
+ # distribution
144
+ noise_distr = observable.get(NOISE_DISTRIBUTION, NORMAL)
145
+ if noise_distr.startswith("log-"):
146
+ trafo = LOG
147
+ elif noise_distr.startswith("log10-"):
148
+ trafo = LOG10
149
+
150
simulation = petab.scale(simulation, trafo)
151
measurement = petab.scale(measurement, trafo)
152
0 commit comments