Skip to content

Commit

Permalink
blacked
Browse files Browse the repository at this point in the history
  • Loading branch information
EveCharbie committed Oct 30, 2024
1 parent d052ac8 commit 2f42904
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bioptim/dynamics/dynamics_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ def torque_driven(
if nlp.ode_solver.defects_type == DefectType.IMPLICIT:
if not with_contact and fatigue is None:
qddot = DynamicsFunctions.get(nlp.states_dot["qddot"], nlp.states_dot.scaled.cx)
tau_id = DynamicsFunctions.inverse_dynamics(
nlp, q, qdot, qddot, with_contact, external_forces
)
tau_id = DynamicsFunctions.inverse_dynamics(nlp, q, qdot, qddot, with_contact, external_forces)
defects = nlp.cx(dq.shape[0] + tau_id.shape[0], tau_id.shape[1])

dq_defects = []
Expand Down

0 comments on commit 2f42904

Please sign in to comment.