-
Notifications
You must be signed in to change notification settings - Fork 48
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
[RTR] Stochastic variables should not be inputs of OCP #765
Conversation
Codecov ReportAttention:
📢 Thoughts on this report? Let us know!. |
|
I propose to let the first bullet point for another PR to not grow this PR. |
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.
Reviewed 1 of 3 files at r1, 3 of 3 files at r2, 6 of 6 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Ipuch)
bioptim/optimization/optimal_control_program.py
line 318 at r3 (raw file):
s_init, s_scaling, )
self._prepare_all_decision_variables should prepare them, but I don't see the point returning them (I know that you did not introduce that, but since we are refactoring...). If we don't return them, it allows an overriden method to actually prepare what they want (and need) without worrying of the return signature of the method.
And if an inherited class need to change the behavior of a particular value, they can call super on this and change the specific one they need
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @pariterre)
bioptim/optimization/optimal_control_program.py
line 318 at r3 (raw file):
Previously, pariterre (Pariterre) wrote…
self._prepare_all_decision_variables should prepare them, but I don't see the point returning them (I know that you did not introduce that, but since we are refactoring...). If we don't return them, it allows an overriden method to actually prepare what they want (and need) without worrying of the return signature of the method.
And if an inherited class need to change the behavior of a particular value, they can call super on this and change the specific one they need
I need a small talk. I took the easiest path, but maybe i can do better.
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.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @Ipuch)
It always confuses me and it broke all my older ocps.
All Submissions:
New Feature Submissions:
black . -l120 --exclude "external/*"
)?Changes to Core Features:
This change is