Skip to content

Commit

Permalink
Merge pull request #318 from control-toolbox/auto-juliaformatter-pr
Browse files Browse the repository at this point in the history
[AUTO] JuliaFormatter.jl run
  • Loading branch information
ocots authored Dec 14, 2024
2 parents f9ffa03 + 6677410 commit 32392ce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/optimal_control_model-setters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,8 @@ function constraint!(
BoundaryConstraint!((r, x0, xf) -> (@views r[:] .= x0[rg]; nothing), V)
else
BoundaryConstraint!(
(r, x0, xf, v) -> (@views r[:] .= x0[rg]; nothing), V
)
(r, x0, xf, v) -> (@views r[:] .= x0[rg]; nothing), V
)
end
else
if V == Fixed
Expand All @@ -653,8 +653,8 @@ function constraint!(
BoundaryConstraint!((r, x0, xf) -> (@views r[:] .= xf[rg]; nothing), V)
else
BoundaryConstraint!(
(r, x0, xf, v) -> (@views r[:] .= xf[rg]; nothing), V
)
(r, x0, xf, v) -> (@views r[:] .= xf[rg]; nothing), V
)
end
else
if V == Fixed
Expand Down
8 changes: 4 additions & 4 deletions src/optimal_control_model-type.jl
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ Throw ```UnauthorizedCall``` exception if the state of an ocp is not set.
"""
function __check_state_set(ocp::OptimalControlModel)
return __is_state_not_set(ocp) &&
throw(UnauthorizedCall("the state dimension has to be set before."))
throw(UnauthorizedCall("the state dimension has to be set before."))
end

"""
Expand All @@ -275,7 +275,7 @@ Throw ```UnauthorizedCall``` exception if the control of an ocp is not set.
"""
function __check_control_set(ocp::OptimalControlModel)
return __is_control_not_set(ocp) &&
throw(UnauthorizedCall("the control dimension has to be set before."))
throw(UnauthorizedCall("the control dimension has to be set before."))
end

"""
Expand All @@ -286,7 +286,7 @@ Throw ```UnauthorizedCall``` exception if the time of an ocp is not set.
"""
function __check_is_time_set(ocp::OptimalControlModel)
return __is_time_not_set(ocp) &&
throw(UnauthorizedCall("the time dimension has to be set before."))
throw(UnauthorizedCall("the time dimension has to be set before."))
end

"""
Expand All @@ -297,7 +297,7 @@ Throw ```UnauthorizedCall``` exception if the variable of an ocp is not set.
"""
function __check_variable_set(ocp::OptimalControlModel{<:TimeDependence,NonFixed})
return __is_variable_not_set(ocp) &&
throw(UnauthorizedCall("the variable dimension has to be set before."))
throw(UnauthorizedCall("the variable dimension has to be set before."))
end

"""
Expand Down
6 changes: 3 additions & 3 deletions src/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ function ct_repl(; debug=false, verbose=false)
nothing
else
begin
println("\n", string($ct_repl_data.ocp_name))
$(ct_repl_data.ocp_name)
end
println("\n", string($ct_repl_data.ocp_name))
$(ct_repl_data.ocp_name)
end
end
end
return q
Expand Down

0 comments on commit 32392ce

Please sign in to comment.