Skip to content

Commit

Permalink
Removing last multistart examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin CO committed Feb 15, 2024
1 parent 51bbb29 commit 62808e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 64 deletions.
31 changes: 0 additions & 31 deletions examples/getting_started/multi_start.py

This file was deleted.

33 changes: 0 additions & 33 deletions tests/shard1/test_ocp_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import numpy as np

from cocofest import (
FunctionalElectricStimulationMultiStart,
DingModelFrequency,
DingModelFrequencyWithFatigue,
DingModelPulseDurationFrequency,
Expand Down Expand Up @@ -434,38 +433,6 @@ def test_ocp_not_for_optimal_error():
)


@pytest.mark.parametrize(
"force_tracking, end_node_tracking", [(init_force_tracking, None), (None, init_end_node_tracking)]
)
@pytest.mark.parametrize("min_pulse_duration, min_pulse_intensity", [(minimum_pulse_duration, minimum_pulse_intensity)])
def test_multi_start_building(force_tracking, end_node_tracking, min_pulse_duration, min_pulse_intensity):
multi_start = FunctionalElectricStimulationMultiStart(
methode="standard",
model=[DingModelFrequency(), DingModelPulseDurationFrequency(), DingModelIntensityFrequency()],
n_stim=[10],
n_shooting=[20],
final_time=[1],
frequency=[None],
force_tracking=[force_tracking],
end_node_tracking=[end_node_tracking],
time_min=[0.01],
time_max=[0.1],
time_bimapping=[False],
pulse_duration=[None],
pulse_duration_min=[minimum_pulse_duration],
pulse_duration_max=[0.0006],
pulse_duration_bimapping=[None],
pulse_intensity=[None],
pulse_intensity_min=[minimum_pulse_intensity],
pulse_intensity_max=[130],
pulse_intensity_bimapping=[None],
path_folder="./temp",
)

# --- Delete the temp file ---#
shutil.rmtree("./temp")


def test_ding2007_build():
min_duration = DingModelPulseDurationFrequency().pd0
ocp = OcpFes().prepare_ocp(
Expand Down

0 comments on commit 62808e1

Please sign in to comment.