Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Lorenz 63 model filtering bug #252

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions test/models/lorenz63.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module Lorenz63

using Base.Threads
using Distributions
using FillArrays
using HDF5
using Random
using PDMats
Expand Down Expand Up @@ -57,7 +56,7 @@ function init(
Tsit5();
save_everystep=false
)
for u in eachcol(Matrix{S}(undef, 3, n_tasks))
for u in eachcol(zeros(S, 3, n_tasks))
]
state_dimension = 3
observation_dimension = length(parameters.observed_indices)
Expand All @@ -67,9 +66,9 @@ function init(
(
MvNormal(m, isa(s, Vector) ? PDiagMat(s.^2) : ScalMat(length(m), s.^2))
for (m, s) in (
(Ones{S}(state_dimension), parameters.initial_state_std),
(Zeros{S}(state_dimension), parameters.state_noise_std),
(Zeros{T}(observation_dimension), parameters.observation_noise_std),
(ones(S, state_dimension), parameters.initial_state_std),
(zeros(S, state_dimension), parameters.state_noise_std),
(zeros(T, observation_dimension), parameters.observation_noise_std),
)
)...
)
Expand Down
Loading