Skip to content

Commit

Permalink
fixing last typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin CO committed Apr 22, 2024
1 parent 34e4f4a commit 5c7b763
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cocofest/optimization/fes_identification_ocp.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def prepare_ocp(
use_sx=use_sx,
ode_solver=ode_solver,
n_threads=n_threads,
pulse_duration=pulse_duration,
pulse_intensity=pulse_intensity,
fixed_pulse_duration=pulse_duration,
fixed_pulse_intensity=pulse_intensity,
)

OcpFesId._sanity_check_id(
Expand Down
4 changes: 2 additions & 2 deletions tests/shard1/test_ocp_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def test_all_ocp_fes_errors():
n_stim=3,
n_shooting=10,
final_time=0.3,
objective={"custom_objective": "objective_functions"},
objective={"custom": "objective_functions"},
)

with pytest.raises(TypeError, match="All elements in ObjectiveList must be an Objective type"):
Expand All @@ -746,7 +746,7 @@ def test_all_ocp_fes_errors():
n_stim=3,
n_shooting=10,
final_time=0.3,
objective={"custom_objective": objective_functions},
objective={"custom": objective_functions},
)

with pytest.raises(TypeError, match="ode_solver must be a OdeSolver type"):
Expand Down

0 comments on commit 5c7b763

Please sign in to comment.