diff --git a/src/models/VPPSystem.jl b/src/models/VPPSystem.jl index 718523ba9a..d822e6e484 100644 --- a/src/models/VPPSystem.jl +++ b/src/models/VPPSystem.jl @@ -55,7 +55,6 @@ end println("HEY HEY HEY") - # Constructor for demo purposes; non-functional. function VPPSystem(::Nothing) return VPPSystem(; @@ -76,7 +75,6 @@ function VPPSystem(::Nothing) ) end - # Getter functions for VPPSystem struct get_name(value::VPPSystem) = value.name @@ -134,7 +132,7 @@ get_ext(value::VPPSystem) = value.ext """Get [`VPPSystem`](@ref) `internal`.""" get_internal(value::VPPSystem) = value.internal - + # Setter functions for VPPSystem struct """Set [`VPPSystem`](@ref) `name`.""" @@ -178,7 +176,7 @@ set_ext(value::VPPSystem) = value.ext """Set [`VPPSystem`](@ref) `internal`.""" set_internal(value::VPPSystem) = value.internal - + function get_subcomponents(vpp::VPPSystem) Channel() do channel for field in (:storage, :renewable_unit, :flexible_load) diff --git a/test/test_vpp_system.jl b/test/test_vpp_system.jl index 17e6c19604..09095b86b6 100644 --- a/test/test_vpp_system.jl +++ b/test/test_vpp_system.jl @@ -28,4 +28,4 @@ add_time_series!(test_sys, vpp_sys, forecast) ts = get_time_series(Deterministic, vpp_sys, "test") @test isa(ts, Deterministic) -end \ No newline at end of file +end