Skip to content

Commit

Permalink
use kwarg properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Dec 13, 2023
1 parent 31ab810 commit 67ac523
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/service_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ mutable struct ServiceModel{D <: PSY.Service, B <: AbstractServiceFormulation}
attributes = Dict{String, Any}(),
contributing_devices_map = Dict{Type{<:PSY.Component}, Vector{<:PSY.Component}}(),
) where {D <: PSY.Service, B <: AbstractServiceFormulation}
attributes_ = get_default_attributes(D, B)
attributes_for_model = get_default_attributes(D, B)
for (k, v) in attributes
attributes_[k] = v
attributes_for_model[k] = v
end

_check_service_formulation(D)
Expand All @@ -62,7 +62,7 @@ mutable struct ServiceModel{D <: PSY.Service, B <: AbstractServiceFormulation}
use_slacks,
duals,
time_series_names,
attributes_,
attributes_for_model,
contributing_devices_map,
)
end
Expand Down Expand Up @@ -113,7 +113,7 @@ function ServiceModel(
feedforwards,
duals,
time_series_names,
attributes_for_model,
attributes = attributes_for_model,
)
end

Expand Down

0 comments on commit 67ac523

Please sign in to comment.