Skip to content

Commit

Permalink
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 4, 2024
1 parent 1f669d9 commit 968da5f
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,8 +154,9 @@ 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))
name = nameof(ode_sys), is_scalar_noise, observed = observed(ode_sys), defaults = defaults(sys),
parameter_dependencies = parameter_dependencies(sys))
end
end

0 comments on commit 968da5f

Please sign in to comment.