-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support initializeprobpmap
in relevant SciMLFunctions
#760
Conversation
why would optimizations have this? |
It doesn't. Those changes are from the format commit |
4ca4e9b
to
c0f30cc
Compare
318197b
to
63d2fdc
Compare
63d2fdc
to
11f50a7
Compare
932cb31
to
df4e133
Compare
df4e133
to
ea8f92c
Compare
ea8f92c
to
a25ee6a
Compare
@@ -174,6 +174,17 @@ function Base.setproperty!(prob::ODEProblem, s::Symbol, v, order::Symbol) | |||
Base.setfield!(prob, s, v, order) | |||
end | |||
|
|||
function ConstructionBase.constructorof(::Type{P}) where {P <: ODEProblem} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For SciML/DiffEqBase.jl#1070, but it might not be now.
use_defaults = false, | ||
_kwargs...) | ||
if tspan === missing | ||
tspan = prob.tspan | ||
end | ||
|
||
newu0, newp = updated_u0_p(prob, u0, p; interpret_symbolicmap, use_defaults) | ||
newu0, newp = updated_u0_p(prob, u0, p, tspan[1]; interpret_symbolicmap, use_defaults) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this breaking downstream?
@@ -693,7 +716,8 @@ function _updated_u0_p_symmap(prob, u0, ::Val{true}, p, ::Val{true}) | |||
remake_buffer(prob, parameter_values(prob), keys(p), values(p)) | |||
end | |||
|
|||
function updated_u0_p(prob, u0, p; interpret_symbolicmap = true, use_defaults = false) | |||
function updated_u0_p( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope it's here
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.