Skip to content

Commit

Permalink
change var name
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Dec 13, 2023
1 parent 543b61a commit 31ab810
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/service_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ function ServiceModel(
) where {D <: PSY.Service, B <: AbstractServiceFormulation}
# If more attributes are used later, move free form string to const and organize
# attributes
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
if !haskey(attributes_, "aggregated_service_model")
push!(attributes_, "aggregated_service_model" => true)
if !haskey(attributes_for_model, "aggregated_service_model")
push!(attributes_for_model, "aggregated_service_model" => true)
end
return ServiceModel(
service_type,
Expand All @@ -113,7 +113,7 @@ function ServiceModel(
feedforwards,
duals,
time_series_names,
attributes_,
attributes_for_model,
)
end

Expand Down

0 comments on commit 31ab810

Please sign in to comment.