From 11cc3a9dfe648a39930c22cac4ee99e3373b239a Mon Sep 17 00:00:00 2001 From: Lilith Orion Hafner Date: Wed, 21 Feb 2024 21:53:27 +0000 Subject: [PATCH 1/2] Fix typo in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 881456e..516b8ac 100644 --- a/README.md +++ b/README.md @@ -531,7 +531,7 @@ initial conditions and parameters: ```py import random def prob_func(prob,i,rep): - de.remake(prob,u0=[random.uniform(0, 1)*u0[i] for i in range(0,3)], + return de.remake(prob,u0=[random.uniform(0, 1)*u0[i] for i in range(0,3)], p=[random.uniform(0, 1)*p[i] for i in range(0,3)]) ensembleprob = de.EnsembleProblem(fast_prob, safetycopy=False) From 1439b3fc85eb06eaca943a0338e6312eb4b6ae3a Mon Sep 17 00:00:00 2001 From: Lilith Orion Hafner Date: Wed, 21 Feb 2024 21:56:28 +0000 Subject: [PATCH 2/2] Actually use an ensemble --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 516b8ac..6310bcf 100644 --- a/README.md +++ b/README.md @@ -534,7 +534,7 @@ def prob_func(prob,i,rep): return de.remake(prob,u0=[random.uniform(0, 1)*u0[i] for i in range(0,3)], p=[random.uniform(0, 1)*p[i] for i in range(0,3)]) -ensembleprob = de.EnsembleProblem(fast_prob, safetycopy=False) +ensembleprob = de.EnsembleProblem(fast_prob, prob_func=prob_func, safetycopy=False) ``` Now we solve the ensemble in serial: