Skip to content

Commit

Permalink
fixed some tests
Browse files Browse the repository at this point in the history
EveCharbie committed Nov 13, 2023
1 parent 18b58c8 commit e0c7a0b
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions bioptim/limits/objective_functions.py
Original file line number Diff line number Diff line change
@@ -387,6 +387,7 @@ def get_type() -> Callable
MINIMIZE_SEGMENT_ROTATION = (PenaltyFunctionAbstract.Functions.minimize_segment_rotation,)
MINIMIZE_SEGMENT_VELOCITY = (PenaltyFunctionAbstract.Functions.minimize_segment_velocity,)
MINIMIZE_STATE = (PenaltyFunctionAbstract.Functions.minimize_states,)
MINIMIZE_CONTROL = (PenaltyFunctionAbstract.Functions.minimize_controls,)
MINIMIZE_TIME = (ObjectiveFunction.MayerFunction.Functions.minimize_time,)
PROPORTIONAL_STATE = (PenaltyFunctionAbstract.Functions.proportional_states,)
STOCHASTIC_MINIMIZE_VARIABLE = (PenaltyFunctionAbstract.Functions.stochastic_minimize_variables,)
2 changes: 1 addition & 1 deletion tests/shard1/test_all_examples.py
Original file line number Diff line number Diff line change
@@ -1347,7 +1347,7 @@ def test__torque_driven_ocp__trampo_quaternions():
bioptim_folder = os.path.dirname(ocp_module.__file__)

ocp_module.prepare_ocp(
biorbd_model_path=bioptim_folder + "/models/TruncAnd2Arm_Quaternion.bioMod",
biorbd_model_path=bioptim_folder + "/models/trunk_and_2arm_quaternion.bioMod",
n_shooting=5,
final_time=0.25,
expand_dynamics=False,
2 changes: 1 addition & 1 deletion tests/shard3/test_global_torque_driven_ocp.py
Original file line number Diff line number Diff line change
@@ -433,7 +433,7 @@ def test_trampo_quaternions(phase_dynamics):
bioptim_folder = os.path.dirname(ocp_module.__file__)

# Define the problem
model_path = bioptim_folder + "/models/TruncAnd2Arm_Quaternion.bioMod"
model_path = bioptim_folder + "/models/trunk_and_2arm_quaternion.bioMod"
final_time = 0.25
n_shooting = 5

0 comments on commit e0c7a0b

Please sign in to comment.