Skip to content

Commit

Permalink
clean(dead code)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipuch committed Mar 5, 2024
1 parent 5069b23 commit 01d3962
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bioptim/optimization/optimal_control_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,7 @@ def _finalize_penalties(
# Define continuity constraints
# Prepare phase transitions (Reminder, it is important that parameters are declared before,
# otherwise they will erase the phase_transitions)
self.phase_transitions = PhaseTransitionBuilder(self).prepare_phase_transitions(phase_transitions)
# self.phase_transitions = phase_transitions.prepare_phase_transitions(self)
self.phase_transitions = PhaseTransitionBuilder(ocp=self).prepare_phase_transitions(phase_transitions)

# Skipping creates an OCP without built-in continuity constraints, make sure you declared constraints elsewhere
self._declare_continuity()
Expand Down

0 comments on commit 01d3962

Please sign in to comment.