PowerSystems.jl icon indicating copy to clipboard operation
PowerSystems.jl copied to clipboard

supplemental accessor for battery reactive power fails if nothing

Open claytonpbarrows opened this issue 2 years ago • 0 comments

get_max_reactive_power(battery)
ERROR: type Nothing has no field max
Stacktrace:
 [1] getproperty(x::Nothing, f::Symbol)
   @ Base ./Base.jl:33
 [2] get_max_reactive_power(d::GenericBattery)
   @ PowerSystems ~/.julia/packages/PowerSystems/Rjz37/src/models/supplemental_accessors.jl:43

claytonpbarrows avatar Sep 03 '21 04:09 claytonpbarrows