-
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
Terminology PR #465
Terminology PR #465
Conversation
Codecov Report
@@ Coverage Diff @@
## CrazyDynamics #465 +/- ##
=================================================
- Coverage 80.96% 80.92% -0.04%
=================================================
Files 85 85
Lines 9240 9249 +9
=================================================
+ Hits 7481 7485 +4
- Misses 1759 1764 +5
Continue to review full report at Codecov.
|
ready to be reviewed |
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 5 of 10 files at r5, 1 of 4 files at r6, 9 of 9 files at r7, all commit messages.
Reviewable status: all files reviewed, 8 unresolved discussions (waiting on @Ipuch)
bioptim/dynamics/configure_problem.py
line 109 at r7 (raw file):
with_contact: bool = False, rigidbody_dynamics: Transcription = Transcription.ODE, soft_contacts_dynamics: Transcription = Transcription.ODE,
rigidbody_dynamics: RigidBodyDynamics = RigidBodyDynamics .ODE
soft_contacts_dynamics: SoftContactDynamics = SoftContactDynamics .ODE
Code quote:
rigidbody_dynamics: Transcription = Transcription.ODE,
soft_contacts_dynamics: Transcription = Transcription.ODE,
bioptim/dynamics/configure_problem.py
line 133 at r7 (raw file):
soft_contacts_dynamics != Transcription.CONSTRAINT and soft_contacts_dynamics != Transcription.ODE and nlp.model.nbSoftContacts() != 0
Put nbSoftContacts first
bioptim/dynamics/configure_problem.py
line 140 at r7 (raw file):
if rigidbody_dynamics == Transcription.CONSTRAINT_ID: if soft_contacts_dynamics == Transcription.ODE and nlp.model.nbSoftContacts() != 0:
Put soft contact in a factored if
bioptim/dynamics/configure_problem.py
line 151 at r7 (raw file):
ConfigureProblem.configure_qdot(nlp, True, False) ConfigureProblem.configure_tau(nlp, False, True, fatigue) if rigidbody_dynamics == Transcription.CONSTRAINT_FD or rigidbody_dynamics == Transcription.CONSTRAINT_ID:
LONG name
bioptim/dynamics/configure_problem.py
line 153 at r7 (raw file):
if rigidbody_dynamics == Transcription.CONSTRAINT_FD or rigidbody_dynamics == Transcription.CONSTRAINT_ID: ConfigureProblem.configure_qddot(nlp, False, True) if (
elif?
bioptim/dynamics/configure_problem.py
line 259 at r7 (raw file):
soft_contacts_dynamics != Transcription.CONSTRAINT and soft_contacts_dynamics != Transcription.ODE and nlp.model.nbSoftContacts() != 0
same
bioptim/examples/getting_started/example_implicit_dynamics.py
line 78 at r7 (raw file):
# Be careful to let the accelerations not to much bounded to find the same solution in implicit dynamics if rigidbody_dynamics == Transcription.CONSTRAINT_ID or rigidbody_dynamics == Transcription.CONSTRAINT_FD:
CONTRAINT_INVERSE_DYNAMICS
bioptim/misc/enums.py
line 145 at r7 (raw file):
ODE = "ode" CONSTRAINT = "constraint" CONSTRAINT_ID = "constraint_id"
class RigidBodyDynamics(Enum):
ODE = "ode"
DAE_INVERSE_DYNAMICS = "dae_inverse_dynamics"
DAE_FORWARD_DYNAMICS = "dae_forward_dynamics"
DAE_INVERSE_DYNAMICS_JERK = "dae_inverse_dynamics_jerk"
DAE_FORWARD_DYNAMICS_JERK = "dae_forward_dynamics_jerk"
Code quote:
class Transcription(Enum):
ODE = "ode"
CONSTRAINT = "constraint"
CONSTRAINT_ID = "constraint_id"
CONSTRAINT_FD = "constraint_fd"
CONSTRAINT_ID_JERK = "constraint_id_jerk"
CONSTRAINT_FD_JERK = "constraint_fd_jerk"
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: 2 of 17 files reviewed, 8 unresolved discussions (waiting on @pariterre)
bioptim/dynamics/configure_problem.py
line 109 at r7 (raw file):
Previously, pariterre (Pariterre) wrote…
rigidbody_dynamics: RigidBodyDynamics = RigidBodyDynamics .ODE
soft_contacts_dynamics: SoftContactDynamics = SoftContactDynamics .ODE
done.
bioptim/dynamics/configure_problem.py
line 133 at r7 (raw file):
Previously, pariterre (Pariterre) wrote…
Put nbSoftContacts first
done
bioptim/dynamics/configure_problem.py
line 140 at r7 (raw file):
Previously, pariterre (Pariterre) wrote…
Put soft contact in a factored if
done
bioptim/dynamics/configure_problem.py
line 151 at r7 (raw file):
Previously, pariterre (Pariterre) wrote…
LONG name
done
bioptim/dynamics/configure_problem.py
line 153 at r7 (raw file):
Previously, pariterre (Pariterre) wrote…
elif?
done
bioptim/dynamics/configure_problem.py
line 259 at r7 (raw file):
Previously, pariterre (Pariterre) wrote…
same
done
bioptim/examples/getting_started/example_implicit_dynamics.py
line 78 at r7 (raw file):
Previously, pariterre (Pariterre) wrote…
CONTRAINT_INVERSE_DYNAMICS
Done
bioptim/misc/enums.py
line 145 at r7 (raw file):
Previously, pariterre (Pariterre) wrote…
class RigidBodyDynamics(Enum): ODE = "ode" DAE_INVERSE_DYNAMICS = "dae_inverse_dynamics" DAE_FORWARD_DYNAMICS = "dae_forward_dynamics" DAE_INVERSE_DYNAMICS_JERK = "dae_inverse_dynamics_jerk" DAE_FORWARD_DYNAMICS_JERK = "dae_forward_dynamics_jerk"
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 15 of 15 files at r8, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Ipuch)
Enhanced terminology for algebraic constraints.
This change is