From d3666ec474dd77d13be13ce403c4cfe68573cc1a Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Mon, 29 Jan 2024 14:04:38 +0530 Subject: [PATCH] fixup! refactor: only create SymbolCache in SciMLFunctions if symbols are given --- src/scimlfunctions.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scimlfunctions.jl b/src/scimlfunctions.jl index c3c083973f..b76dbac46d 100644 --- a/src/scimlfunctions.jl +++ b/src/scimlfunctions.jl @@ -4245,7 +4245,7 @@ for S in [:ODEFunction end end -SymbolicIndexingInterface.symbolic_container(fn::AbstractSciMLFunction) = fn.sys +SymbolicIndexingInterface.symbolic_container(fn::AbstractSciMLFunction) = has_sys(fn) ? fn.sys : SymbolCache() SymbolicIndexingInterface.is_observed(fn::AbstractSciMLFunction, sym) = has_observed(fn)