-
-
Notifications
You must be signed in to change notification settings - Fork 232
fix: fix bad input ordering, make downstream tests pass #3804
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: fix bad input ordering, make downstream tests pass #3804
Conversation
c9f830c
to
b501098
Compare
Co-authored-by: Fredrik Bagge Carlson <baggepinnen@gmail.com>
b501098
to
173fc49
Compare
@@ -670,6 +672,12 @@ function complete( | |||
end | |||
ordered_ps = vcat( | |||
ordered_ps, reduce(vcat, ps_split; init = eltype(ordered_ps)[])) | |||
if isscheduled(sys) |
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.
I don't quite understand where the fix to the ordering happens. Will this assert @assert issorted(input_idxs)
guarantee that the order expected by the inputs when they are passed as input arguments to generated control functions is the same as the order specified by the user?
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 fix to ordering is in the IndexCache
constructor - that was the problem all along. This check here just enforces the invariant.
Disable CASADI for LTS? And is there a standard library release we need to do? |
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.