Skip to content

Commit

Permalink
test broken
Browse files Browse the repository at this point in the history
  • Loading branch information
EveCharbie committed Aug 22, 2024
1 parent 015a6ca commit e60a393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bioptim/limits/penalty.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ def minimize_contact_forces_end_of_interval(
f"This constraint is only useful for ControlType.CONSTANT controls. For any other dynamics, you should constraint the contact at the begining of the interval."
)

if controller.algebraic_states.cx_start.shape != (0, 1):
if controller.algebraic_states.cx_start.shape[0] != 0:
raise NotImplementedError(
"This constraint is not implemented for problems with algebraic states as you should provide their dynamics to integrate it as well."
)
Expand Down

0 comments on commit e60a393

Please sign in to comment.