From bf76d0570a90202d67230ba4d456ac34b3da44e4 Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Fri, 29 Nov 2024 15:47:14 -0700 Subject: [PATCH] formatter --- src/core/optimization_container.jl | 8 +++++++- .../devices/common/add_to_expression.jl | 12 ++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/core/optimization_container.jl b/src/core/optimization_container.jl index 64cb14427..a0a549d9d 100644 --- a/src/core/optimization_container.jl +++ b/src/core/optimization_container.jl @@ -1447,7 +1447,13 @@ function add_expression_container!( meta = IS.Optimization.CONTAINER_KEY_EMPTY_META, ) where {T <: ExpressionType, U <: Union{PSY.Component, PSY.System}} expr_key = ExpressionKey(T, U, meta) - return _add_expression_container!(container, expr_key, expr_type, axs...; sparse = sparse) + return _add_expression_container!( + container, + expr_key, + expr_type, + axs...; + sparse = sparse, + ) end function add_expression_container!( diff --git a/src/devices_models/devices/common/add_to_expression.jl b/src/devices_models/devices/common/add_to_expression.jl index 02e505b0b..68354b398 100644 --- a/src/devices_models/devices/common/add_to_expression.jl +++ b/src/devices_models/devices/common/add_to_expression.jl @@ -44,14 +44,22 @@ function add_expressions!( if fuel_curve isa PSY.FuelCurve push!(names, PSY.get_name(d)) if !found_quad_fuel_functions - found_quad_fuel_functions = PSY.get_value_curve(fuel_curve) isa PSY.QuadraticCurve + found_quad_fuel_functions = + PSY.get_value_curve(fuel_curve) isa PSY.QuadraticCurve end end end if !isempty(names) expr_type = found_quad_fuel_functions ? JuMP.QuadExpr : GAE - add_expression_container!(container, T(), D, names, time_steps; expr_type = expr_type) + add_expression_container!( + container, + T(), + D, + names, + time_steps; + expr_type = expr_type, + ) end return end