Skip to content

Commit

Permalink
Merge pull request #522 from NREL-SIIP/jd/regulation_device_bug
Browse files Browse the repository at this point in the history
fix function signature
  • Loading branch information
jd-lara authored Jun 23, 2020
2 parents bc15370 + dd6152e commit 2f36106
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/models/regulation_device.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ get_inertia(value::RegulationDevice) = value.inertia
get_cost(value::RegulationDevice) = value.cost

set_droop!(value::RegulationDevice, val::Float64) = value.droop = val
set_participation_factor!(value::RegulationDevice, val::Float64) =
value.participation_factor = val
set_participation_factor!(
value::RegulationDevice,
val::NamedTuple{(:up, :dn), Tuple{Float64, Float64}},
) = value.participation_factor = val
set_reserve_limit_up!(value::RegulationDevice, val::Float64) = value.reserve_limit_up = val
set_reserve_limit_dn!(value::RegulationDevice, val::Float64) = value.reserve_limit_dn = val
set_inertia!(value::RegulationDevice, val::Float64) = value.inertia = val
Expand Down

0 comments on commit 2f36106

Please sign in to comment.