Skip to content

Commit 8e4536c

Browse files
committed
fix lotka volterra
1 parent 7573a4d commit 8e4536c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/simulators/benchmark_simulators/lotka_volterra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def observation_model(self, params: np.ndarray) -> np.ndarray:
114114
pp = np.clip(pp, a_min=1e-10, a_max=10000.0)
115115

116116
# Add noise, decide whether to flatten and return
117-
x = self.rng.lognormal(pp, sigma=self.obs_noise)
117+
x = self.rng.lognormal(np.log(pp), sigma=self.obs_noise)
118118
if self.flatten:
119119
return x.flatten()
120120
return x

0 commit comments

Comments
 (0)