-
Notifications
You must be signed in to change notification settings - Fork 46
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] Model interface for a wider use of bioptim #581
Conversation
Codecov ReportBase: 81.27% // Head: 81.60% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #581 +/- ##
==========================================
+ Coverage 81.27% 81.60% +0.32%
==========================================
Files 99 104 +5
Lines 11057 11367 +310
==========================================
+ Hits 8987 9276 +289
- Misses 2070 2091 +21
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
relative parent import fixed
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: 85 of 102 files reviewed, 26 unresolved discussions (waiting on @pariterre)
bioptim/__init__.py
line 176 at r2 (raw file):
Previously, pariterre (Pariterre) wrote…
Use a Protocol instead?
obsolete
bioptim/dynamics/dynamics_functions.py
line 748 at r2 (raw file):
Previously, pariterre (Pariterre) wrote…
Move this to the BioModel (set_excitation(u))
Set Excitation is not possible to move !
bioptim/dynamics/dynamics_functions.py
line 785 at r2 (raw file):
Previously, pariterre (Pariterre) wrote…
Move this to the BioModel (set_excitation(u))
But this one yes !
bioptim/dynamics/ode_solver.py
line 137 at r13 (raw file):
Previously, pariterre (Pariterre) wrote…
Do not keep numpy dependency
ok,
bioptim/examples/custom_model/main.py
line 23 at r2 (raw file):
Previously, pariterre (Pariterre) wrote…
BioModel
MyModel is fine because it made on the custom model.
bioptim/examples/getting_started/custom_constraint.py
line 59 at r2 (raw file):
Previously, Ipuch (Pierre Puchaud) wrote…
to modify !
Saved by you
bioptim/interfaces/biomodel.py
line 84 at r12 (raw file):
Previously, pariterre (Pariterre) wrote…
Be more precise
node needed anymore.
bioptim/interfaces/biorbd_model.py
line 282 at r13 (raw file):
reshape_fext_to_fcontact
removed.
bioptim/limits/constraints.py
line 388 at r12 (raw file):
Previously, pariterre (Pariterre) wrote…
This should be done internally
internally done.
bioptim/limits/phase_transition.py
line 262 at r12 (raw file):
Previously, pariterre (Pariterre) wrote…
Add a new method in BioModel to load a fresh model when needed
nlp_post.model.copy
Done
bioptim/optimization/optimal_control_program.py
line 274 at r12 (raw file):
Previously, pariterre (Pariterre) wrote…
"bio_model_serialized": [m.serialize() for m in bio_model],
withserialize
being a tuple[type, dict]
done
bioptim/optimization/optimal_control_program.py
line 547 at r12 (raw file):
Previously, pariterre (Pariterre) wrote…
to adjust
done
bioptim/optimization/optimal_control_program.py
line 157 at r13 (raw file):
Previously, pariterre (Pariterre) wrote…
Remove the dependency to numpy
Done
bioptim/optimization/receding_horizon_optimization.py
line 201 at r12 (raw file):
Previously, pariterre (Pariterre) wrote…
To adjust
done
bioptim/optimization/receding_horizon_optimization.py
line 367 at r12 (raw file):
Previously, pariterre (Pariterre) wrote…
To adjust
done
bioptim/optimization/receding_horizon_optimization.py
line 507 at r12 (raw file):
Previously, pariterre (Pariterre) wrote…
To adjust
done
bioptim/examples/custom_model/my_model.py
line 15 at r2 (raw file):
Previously, pariterre (Pariterre) wrote…
No need if it implements a Protocol
done.
bioptim/examples/custom_model/my_model.py
line 51 at r2 (raw file):
Previously, pariterre (Pariterre) wrote…
TODO
done
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: 85 of 102 files reviewed, 26 unresolved discussions (waiting on @pariterre)
bioptim/interfaces/custom_model.py
line 8 at r12 (raw file):
Previously, pariterre (Pariterre) wrote…
Change this for a set_attr at start of OCP (if not in the class)
Done.
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 6 files at r16, 9 of 13 files at r17, 1 of 4 files at r18, 1 of 1 files at r19, 3 of 6 files at r20, 2 of 3 files at r21, 3 of 3 files at r22, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Ipuch)
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 2 of 2 files at r23, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Ipuch)
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: 94 of 102 files reviewed, 2 unresolved discussions (waiting on @pariterre)
bioptim/examples/custom_model/main.py
line 1 at r2 (raw file):
Previously, pariterre (Pariterre) wrote…
Make sure to add in the GUI examples
Done.
bioptim/examples/custom_model/main.py
line 8 at r11 (raw file):
Previously, pariterre (Pariterre) wrote…
To verify
Done.
bioptim/limits/constraints.py
line 463 at r12 (raw file):
Previously, pariterre (Pariterre) wrote…
This should be done internally
Done.
bioptim/limits/penalty.py
line 151 at r12 (raw file):
Previously, pariterre (Pariterre) wrote…
Move this in the actual interface
Done
bioptim/limits/penalty.py
line 606 at r12 (raw file):
Previously, pariterre (Pariterre) wrote…
Not sure is it part of the API
Done
bioptim/optimization/optimal_control_program.py
line 261 at r12 (raw file):
Done
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: 94 of 102 files reviewed, 2 unresolved discussions (waiting on @pariterre)
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 8 of 8 files at r24, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Ipuch)
Should animate be a method of bioModel ? |
@Ipuch Could be... Add this to a todo! |
All Submissions:
New Feature Submissions:
black . -l120 --exclude "external/*"
)?Changes to Core Features:
Tackling #507
This change is