Skip to content

Commit

Permalink
fixup! fix: retain system data on structural_simplify of SDESystem
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Dec 3, 2024
1 parent f555c1e commit 1d4bfd8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/systems/systems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ function __structural_simplify(sys::AbstractSystem, io = nothing; simplify = fal
end

noise_eqs = StructuralTransformations.tearing_substitute_expr(ode_sys, noise_eqs)
return SDESystem(full_equations(ode_sys), noise_eqs,
return SDESystem(Vector{Equation}(full_equations(ode_sys)), noise_eqs,
get_iv(ode_sys), unknowns(ode_sys), parameters(ode_sys);
name = nameof(ode_sys), is_scalar_noise, observed = observed(ode_sys), defaults = defaults(sys),
guesses = guesses(sys), initialization_eqs = initialization_equations(sys))
guesses = guesses(sys), initialization_eqs = initialization_equations(sys),
parameter_dependencies = parameter_dependencies(sys))
end
end

0 comments on commit 1d4bfd8

Please sign in to comment.