Skip to content

Commit 5628896

Browse files
committed
remove additional push to outeqs
1 parent 1079c7a commit 5628896

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/NetworkDynamicsMTKExt.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,11 @@ function generate_io_function(_sys, inputss::Tuple, outputss::Tuple;
365365
verbose && @info "Output $out would lead to FF in g, promote to state instead."
366366
# not observed anymore, delete from observed and put in equations
367367
push!(eqs, 0 ~ out - obs_subs[out])
368-
push!(states, eq.lhs)
368+
push!(states, out)
369369
push!(outeqs, out ~ out)
370370

371371
deleteat!(obseqs_sorted, findfirst(eq -> isequal(eq.lhs, out), obseqs_sorted))
372372
delete!(obs_subs, out)
373-
push!(outeqs, out ~ out)
374373
else # "normal" observed state
375374
push!(outeqs, out ~ obs_subs[out])
376375
# delete from obs equations but *not* from obs_subs (otherwise can't be reference)

0 commit comments

Comments
 (0)