Skip to content

Commit

Permalink
fixup! refactor: only create SymbolCache in SciMLFunctions if symbols…
Browse files Browse the repository at this point in the history
… are given
  • Loading branch information
AayushSabharwal committed Jan 29, 2024
1 parent 102b905 commit d3666ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scimlfunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 4250 in src/scimlfunctions.jl

View check run for this annotation

Codecov / codecov/patch

src/scimlfunctions.jl#L4250

Added line #L4250 was not covered by tests

Expand Down

0 comments on commit d3666ec

Please sign in to comment.