Kev1CO/cocofest

View on GitHub

Showing 132 of 200 total issues

Avoid deeply nested control flow statements.
Open

                        for l in remove_list:
                            time[j].pop(l)
                            raw_data[7].pop(l)
                dictionary = {
Severity: Major
Found in data_process/force_from_c3d.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if isinstance(fixed_pulse_duration, list):
                                parameters_bounds.add(
                                    parameter_name,
                                    min_bound=np.array(fixed_pulse_duration),
                                    max_bound=np.array(fixed_pulse_duration),
    Severity: Major
    Found in cocofest/optimization/fes_ocp_dynamics.py - About 45 mins to fix

      Function _build_phase_parameter has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def _build_phase_parameter(n_stim, final_time, frequency=None, pulse_mode="single", round_down=False):
      Severity: Minor
      Found in cocofest/optimization/fes_ocp.py - About 35 mins to fix

        Function cn_dot_fun has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def cn_dot_fun(
        Severity: Minor
        Found in cocofest/models/hmed2018.py - About 35 mins to fix

          Function get_circle_coord has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def get_circle_coord(
          Severity: Minor
          Found in cocofest/dynamics/inverse_kinematics_and_dynamics.py - About 35 mins to fix

            Function configure_time_state_force_no_cross_bridge has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def configure_time_state_force_no_cross_bridge(
            Severity: Minor
            Found in cocofest/models/state_configue.py - About 35 mins to fix

              Function configure_force has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def configure_force(
              Severity: Minor
              Found in cocofest/models/state_configue.py - About 35 mins to fix

                Function integrate has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def integrate(
                Severity: Minor
                Found in cocofest/integration/ivp_fes.py - About 35 mins to fix

                  Function _set_bounds has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def _set_bounds(bio_models, fes_muscle_models, bound_type, bound_data, n_stim, initial_state):
                  Severity: Minor
                  Found in cocofest/optimization/fes_ocp_dynamics.py - About 35 mins to fix

                    Function configure_ca_troponin_complex has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def configure_ca_troponin_complex(
                    Severity: Minor
                    Found in cocofest/models/state_configue.py - About 35 mins to fix

                      Function stimulation_detection has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def stimulation_detection(
                      Severity: Minor
                      Found in data_process/force_from_c3d.py - About 35 mins to fix

                        Function _sanity_check_id has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def _sanity_check_id(
                        Severity: Minor
                        Found in cocofest/optimization/fes_identification_ocp.py - About 35 mins to fix

                          Function prepare_ocp has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          def prepare_ocp(
                          Severity: Minor
                          Found in cocofest/examples/dynamics/cycling/cycling_torque_driven.py - About 35 mins to fix

                            Function configure_scaling_factor has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def configure_scaling_factor(
                            Severity: Minor
                            Found in cocofest/models/state_configue.py - About 35 mins to fix

                              Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def __init__(
                              Severity: Minor
                              Found in cocofest/models/dynamical_model.py - About 35 mins to fix

                                Function force_at_node_in_ocp has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                def force_at_node_in_ocp(time, force, n_shooting, final_time_phase, sparse=None):
                                Severity: Minor
                                Found in cocofest/identification/identification_method.py - About 35 mins to fix

                                  Function prepare_ocp has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def prepare_ocp(
                                  Severity: Minor
                                  Found in cocofest/examples/dynamics/cycling/cycling_muscle_driven.py - About 35 mins to fix

                                    Function _set_bounds has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def _set_bounds(model=None, n_stim=None, n_shooting=None, force_tracking=None, discontinuity_in_ocp=None):
                                    Severity: Minor
                                    Found in cocofest/optimization/fes_identification_ocp.py - About 35 mins to fix

                                      Function _build_phase_time has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def _build_phase_time(final_time, n_stim, pulse_mode, time_min, time_max):
                                      Severity: Minor
                                      Found in cocofest/optimization/fes_ocp.py - About 35 mins to fix

                                        Function configure_cross_bridges has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            def configure_cross_bridges(
                                        Severity: Minor
                                        Found in cocofest/models/state_configue.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language