Skip to content

Commit ed6e576

Browse files
committed
..
1 parent a514bfd commit ed6e576

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

petab/v1/calculate.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ def calculate_residuals_for_table(
139139
# apply scaling
140140
observable = observable_df.loc[row[OBSERVABLE_ID]]
141141
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+
142150
simulation = petab.scale(simulation, trafo)
143151
measurement = petab.scale(measurement, trafo)
144152

0 commit comments

Comments
 (0)