Skip to content

Commit 6ee8151

Browse files
fix: add getproperty method for backwards compatibility
1 parent 19d46e6 commit 6ee8151

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/scimlfunctions.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4606,3 +4606,14 @@ function SymbolicIndexingInterface.observed(fn::AbstractSciMLFunction, sym::Symb
46064606
end
46074607

46084608
SymbolicIndexingInterface.constant_structure(::AbstractSciMLFunction) = true
4609+
4610+
function Base.getproperty(x::Union{ODEFunction, SplitFunction, DAEFunction}, sym::Symbol)
4611+
if sym == :initializeprob || sym == :update_initializeprob! || sym == :initializeprobmap || sym == :initializeprobpmap
4612+
if x.initialization_data === nothing
4613+
return nothing
4614+
else
4615+
return getproperty(x.initialization_data, sym)
4616+
end
4617+
end
4618+
return getfield(x, sym)
4619+
end

0 commit comments

Comments
 (0)