Skip to content

Commit

Permalink
add all
Browse files Browse the repository at this point in the history
  • Loading branch information
akody committed Oct 7, 2024
1 parent 189988f commit 625d9a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/models/VPPSystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ end

println("HEY HEY HEY")


# Constructor for demo purposes; non-functional.
function VPPSystem(::Nothing)
return VPPSystem(;
Expand All @@ -76,7 +75,6 @@ function VPPSystem(::Nothing)
)
end


# Getter functions for VPPSystem struct

get_name(value::VPPSystem) = value.name
Expand Down Expand Up @@ -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`."""
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/test_vpp_system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
end

0 comments on commit 625d9a1

Please sign in to comment.