From d4e1831eddba44521a97a39ae2452ac923cc9e6e Mon Sep 17 00:00:00 2001 From: Kevin CO Date: Thu, 25 Jul 2024 14:12:55 -0400 Subject: [PATCH] cleaning --- tests/shard6/test_time_dependent_custom_model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/shard6/test_time_dependent_custom_model.py b/tests/shard6/test_time_dependent_custom_model.py index 6f5f623c9..2ec196062 100644 --- a/tests/shard6/test_time_dependent_custom_model.py +++ b/tests/shard6/test_time_dependent_custom_model.py @@ -130,7 +130,7 @@ def dynamics( defects=None, ) - def declare_ding_variables( + def declare_variables( self, ocp: OptimalControlProgram, nlp: NonLinearProgram, numerical_data_timeseries: dict[str, np.ndarray] = None ): name = "Cn" @@ -289,7 +289,7 @@ def prepare_ocp( dynamics = DynamicsList() for i in range(n_stim): dynamics.add( - models[i].declare_ding_variables, + models[i].declare_variables, dynamic_function=models[i].dynamics, expand_dynamics=True, expand_continuity=False, @@ -650,7 +650,7 @@ def prepare_ocp( @pytest.mark.parametrize("test_index", [0, 1, 2, 3]) -def test_time_dependent_ding(test_index): +def test_time_dependent(test_index): time_as_states = problem_dict[str(test_index)]["time_as_states"] use_sx = problem_dict[str(test_index)]["use_sx"]