Skip to content

Commit

Permalink
more fixes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed May 7, 2024
1 parent 16a8e84 commit 09f23e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/optimization_container.jl
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ function check_optimization_container(container::OptimizationContainer)
error("The model container has invalid values in $(encode_key_as_string(k))")
end
end
container.settings_copy = copy_for_serialization(container.settings)
return
end

Expand Down Expand Up @@ -620,7 +621,6 @@ function build_impl!(
LOG_GROUP_OPTIMIZATION_CONTAINER

check_optimization_container(container)

return
end

Expand Down
2 changes: 1 addition & 1 deletion src/devices_models/devices/common/objective_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ end
function _add_pwl_term!(
container::OptimizationContainer,
component::T,
cost_data::AbstractVector{PSY.PiecewiseLinearData},
cost_data::AbstractVector{PSY.PiecewiseStepData},
::U,
::V,
) where {T <: PSY.Component, U <: VariableType, V <: AbstractServiceFormulation}
Expand Down

0 comments on commit 09f23e4

Please sign in to comment.