Skip to content

Commit 192758b

Browse files
fix: make SII.observed support time-independent systems
1 parent f1344b2 commit 192758b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/systems/abstractsystem.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,8 @@ function SymbolicIndexingInterface.observed(
639639
return let _fn = _fn
640640
fn2(u, p) = _fn(u, p)
641641
fn2(u, p::MTKParameters) = _fn(u, p...)
642+
fn2(::Nothing, p) = _fn([], p)
643+
fn2(::Nothing, p::MTKParameters) = _fn([], p...)
642644
fn2
643645
end
644646
end

0 commit comments

Comments
 (0)