Skip to content

Commit

Permalink
Merge pull request #108 from NREL-Sienna/jd/fix5bustest1
Browse files Browse the repository at this point in the history
add missing descriptors
  • Loading branch information
jd-lara authored Sep 9, 2024
2 parents b771de2 + 72a5210 commit 3b975bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/library/psitest_library.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1535,15 +1535,15 @@ function build_c_sys5_ed(; add_forecasts, add_reserves, kwargs...)
PSY.add_time_series!(
c_sys5_ed,
serv,
PSY.Deterministic("max_active_power", forecast_data),
PSY.Deterministic("requirement", forecast_data),
)
end
end
return c_sys5_ed
end

function build_c_sys5_pwl_ed(; add_forecasts, raw_data, kwargs...)
c_sys5_ed = build_c_sys5_ed(; add_forecasts, raw_data, kwargs...)
function build_c_sys5_pwl_ed(; add_forecasts, add_reserves, raw_data, kwargs...)
c_sys5_ed = build_c_sys5_ed(; add_forecasts, add_reserves, raw_data, kwargs...)
thermal = thermal_generators5_pwl(collect(PSY.get_components(PSY.ACBus, c_sys5_ed)))
for d in thermal
PSY.add_component!(c_sys5_ed, d)
Expand Down
10 changes: 10 additions & 0 deletions src/system_descriptor_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,11 @@ const SYSTEM_CATALOG = [
default = true,
allowed_values = Set([true, false]),
),
SystemArgument(;
name = :add_reserves,
default = false,
allowed_values = Set([true, false]),
),
],
),
SystemDescriptor(;
Expand All @@ -489,6 +494,11 @@ const SYSTEM_CATALOG = [
default = true,
allowed_values = Set([true, false]),
),
SystemArgument(;
name = :add_reserves,
default = false,
allowed_values = Set([true, false]),
),
],
),
#=
Expand Down

0 comments on commit 3b975bd

Please sign in to comment.