From e6d76daa3881e71d069858d01d8d0fa4c6b220e3 Mon Sep 17 00:00:00 2001 From: MartinuzziFrancesco Date: Wed, 16 Oct 2024 10:21:30 +0200 Subject: [PATCH 1/2] fixing readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b4667be0..df38d6d5 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ end #solve and take data prob = ODEProblem(lorenz, u0, tspan, p) data = solve(prob, ABM54(), dt = 0.02) +#hacky workaround +data = reduce(hcat, data.u) shift = 300 train_len = 5000 From 477693ce24d0b51ecc875da92095837ec7230041 Mon Sep 17 00:00:00 2001 From: MartinuzziFrancesco Date: Wed, 16 Oct 2024 18:10:08 +0200 Subject: [PATCH 2/2] less hacky workaround for readme --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index df38d6d5..23b51ad7 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,7 @@ function lorenz(du, u, p, t) end #solve and take data prob = ODEProblem(lorenz, u0, tspan, p) -data = solve(prob, ABM54(), dt = 0.02) -#hacky workaround -data = reduce(hcat, data.u) +data = Array(solve(prob, ABM54(), dt = 0.02)) shift = 300 train_len = 5000