Skip to content

Commit

Permalink
fix #68
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-rigoux committed Mar 31, 2019
1 parent cdf5d7f commit 8cc0c3b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/VBA_check.m
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,14 @@
gsi = find([options.sources.type]==0);
for i=1:numel(gsi)
for t=1:dim.n_t
diQ = diag(priors.iQy{t,i}).*~options.isYout(options.sources(gsi(i)).out,t);
options.isYout(options.sources(gsi(i)).out,t) = ~diQ;
priors.iQy{t,i} = diag(diQ)*priors.iQy{t,i}*diag(diQ);
diQ = (diag(priors.iQy{t,i}) == 0) || options.isYout(options.sources(gsi(i)).out,t);
options.isYout(options.sources(gsi(i)).out,t) = diQ;
priors.iQy{t,i} = diag(~diQ)*priors.iQy{t,i}*diag(~diQ);
end
end
end


% store evolution/observation function handles
options.f_fname = f_fname;
options.g_fname = g_fname;
Expand Down

0 comments on commit 8cc0c3b

Please sign in to comment.