Skip to content

Commit

Permalink
remove region from DemandRequirement
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrypotts committed Sep 17, 2024
1 parent 8a7061b commit 776b1e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 2 additions & 10 deletions src/models/generated/DemandRequirement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ This file is auto-generated. Do not edit.
internal::InfrastructureSystemsInternal
ext::Dict
demand_mw::Float64
region::String
available::Bool
end
Expand All @@ -25,7 +24,6 @@ This file is auto-generated. Do not edit.
- `internal::InfrastructureSystemsInternal`: (default: `InfrastructureSystemsInternal()`) Internal field
- `ext::Dict`: (default: `Dict()`) Option for providing additional data
- `demand_mw::Float64`: (default: `0.0`) Demand profile in MW
- `region::String`: Corresponding region for peak demand
- `available::Bool`: (default: `true`) identifies whether the technology is available
"""
mutable struct DemandRequirement{T <: PSY.StaticInjection} <: Technology
Expand All @@ -41,15 +39,13 @@ mutable struct DemandRequirement{T <: PSY.StaticInjection} <: Technology
ext::Dict
"Demand profile in MW"
demand_mw::Float64
"Corresponding region for peak demand"
region::String
"identifies whether the technology is available"
available::Bool
end


function DemandRequirement{T}(; name, zone, power_systems_type, internal=InfrastructureSystemsInternal(), ext=Dict(), demand_mw=0.0, region, available=true, ) where T <: PSY.StaticInjection
DemandRequirement{T}(name, zone, power_systems_type, internal, ext, demand_mw, region, available, )
function DemandRequirement{T}(; name, zone, power_systems_type, internal=InfrastructureSystemsInternal(), ext=Dict(), demand_mw=0.0, available=true, ) where T <: PSY.StaticInjection
DemandRequirement{T}(name, zone, power_systems_type, internal, ext, demand_mw, available, )
end

"""Get [`DemandRequirement`](@ref) `name`."""
Expand All @@ -64,8 +60,6 @@ get_internal(value::DemandRequirement) = value.internal
get_ext(value::DemandRequirement) = value.ext
"""Get [`DemandRequirement`](@ref) `demand_mw`."""
get_demand_mw(value::DemandRequirement) = value.demand_mw
"""Get [`DemandRequirement`](@ref) `region`."""
get_region(value::DemandRequirement) = value.region
"""Get [`DemandRequirement`](@ref) `available`."""
get_available(value::DemandRequirement) = value.available

Expand All @@ -81,7 +75,5 @@ set_internal!(value::DemandRequirement, val) = value.internal = val
set_ext!(value::DemandRequirement, val) = value.ext = val
"""Set [`DemandRequirement`](@ref) `demand_mw`."""
set_demand_mw!(value::DemandRequirement, val) = value.demand_mw = val
"""Set [`DemandRequirement`](@ref) `region`."""
set_region!(value::DemandRequirement, val) = value.region = val
"""Set [`DemandRequirement`](@ref) `available`."""
set_available!(value::DemandRequirement, val) = value.available = val
2 changes: 0 additions & 2 deletions src/models/generated/includes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export get_ramp_dn_percentage
export get_ramp_up_percentage
export get_reg_cost
export get_reg_max
export get_region
export get_resistance
export get_retirement_potential
export get_retrofit_fraction
Expand Down Expand Up @@ -170,7 +169,6 @@ export set_ramp_dn_percentage!
export set_ramp_up_percentage!
export set_reg_cost!
export set_reg_max!
export set_region!
export set_resistance!
export set_retirement_potential!
export set_retrofit_fraction!
Expand Down

0 comments on commit 776b1e2

Please sign in to comment.