NREL-Sienna / PowerSystems.jl

Data structures in Julia to enable power systems analysis. Part of the Scalable Integrated Infrastructure Planning Initiative at the National Renewable Energy Lab.
https://www.nrel.gov/analysis/sienna.html
BSD 3-Clause "New" or "Revised" License
306 stars 76 forks source link

Adequacy check reports incorrect generation capacity value due to bug #1147

Closed gmantegna closed 2 weeks ago

gmantegna commented 2 months ago

The function adequacy_check in src/utils/IO/system_checks.jl currently reports an incorrect value for total generation capacity (this is a function that triggers a warning when there is less capacity than load). I believe this is due to a typo on line 126 of this file; it should read components = get_components(component_type, sys). Line is here: https://github.com/NREL-Sienna/PowerSystems.jl/blob/9e6f8a7e073ef7b606d3bc3a32640fcb69789a99/src/utils/IO/system_checks.jl#L126C37-L126C46