-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
fix: convert Symbol
to symbolic variables in remake, fix split_idxs
#2409
Conversation
@@ -142,11 +142,19 @@ function SciMLBase.process_p_u0_symbolic(prob::Union{SciMLBase.AbstractDEProblem | |||
hasproperty(prob.f, :sys) && hasfield(typeof(prob.f.sys), :ps) || | |||
throw(ArgumentError("This problem does not support symbolic maps with `remake`, i.e. it does not have a symbolic origin." * | |||
" Please use `remake` with the `p` keyword argument as a vector of values, paying attention to parameter order.")) | |||
p = [ | |||
(symbolic_type(sym) != NotSymbolic() ? parameter_symbols(prob)[parameter_index(prob, sym)] : sym) => val |
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.
Shouldn't it be the other way around, to always canonicalize to name?
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.
The way the defs
map is created below and get_u0_p
works requires canonicalizing to values from parameter_symbols
What's left here? |
Nothing. This is required for SciML/SciMLBase.jl#583 to pass |
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.