Skip to content

Commit 3cc79bd

Browse files
committed
noqa
1 parent 6f57b37 commit 3cc79bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

petab/v1/simulate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,15 +256,15 @@ def sample_noise(
256256
observable_transformation = observable_row.get(
257257
petab.C.OBSERVABLE_TRANSFORMATION, petab.C.LIN
258258
)
259-
transform = lambda x: x
259+
transform = lambda x: x # noqa: E731
260260
# observableTransformation=log -> the log of the simulated value is
261261
# distributed according to `noise_distribution`
262262
if observable_transformation == petab.C.LOG:
263263
simulated_value = np.log(simulated_value)
264264
transform = np.exp
265265
elif observable_transformation == petab.C.LOG10:
266266
simulated_value = np.log10(simulated_value)
267-
transform = lambda x: np.power(10, x)
267+
transform = lambda x: np.power(10, x) # noqa: E731
268268

269269
# below is e.g.: `np.random.normal(loc=simulation, scale=noise_value)`
270270
simulated_value_with_noise = getattr(rng, noise_distribution)(

0 commit comments

Comments
 (0)