File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 )(
You can’t perform that action at this time.
0 commit comments