Skip to content

Commit 20b0eff

Browse files
fix: add temporary error message when simplifying systems with noise_eqs
1 parent 91ca34c commit 20b0eff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/systems/systems.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ end
6666

6767
function __structural_simplify(sys::AbstractSystem, io = nothing; simplify = false,
6868
kwargs...)
69+
# TODO: convert noise_eqs to brownians for simplification
70+
if has_noise_eqs(sys) && !isempty(get_noise_eqs(sys))
71+
throw(ArgumentError("Cannot simplify systems with `noise_eqs`"))
72+
end
73+
6974
sys = expand_connections(sys)
7075
state = TearingState(sys)
7176

0 commit comments

Comments
 (0)