Internal API

Downloads.downloadFunction
download(
    repo::AbstractString,
    branch::AbstractString,
    folder::AbstractString
) -> Any
download(
    repo::AbstractString,
    branch::AbstractString,
    folder::AbstractString,
    force::Bool
) -> Any

Download Data from a "branch" into a "data" folder in given argument path. Skip the actual download if the folder already exists and force=false. Returns the downloaded folder name.

source
PowerSystemCaseBuilder.clear_serialized_systemFunction
clear_serialized_system(name::String)
clear_serialized_system(
    name::String,
    case_args::Dict{Symbol}
)

Delete all files and references associated with a PowerSystems.System that has been serialized

Useful while debugging adding a new System to PowerSystemCaseBuilder.jl to ensure all data and references are removed and that the new build is clean

source
PowerSystemCaseBuilder.filter_descriptor_kwargsMethod
filter_descriptor_kwargs(
    descriptor::SystemDescriptor;
    kwargs...
) -> Dict{Symbol, Any}

Return the keyword arguments passed by the user that apply to the descriptor. Add any default values for fields not passed by the user.

source
PowerSystemCaseBuilder.rate_to_probabilityMethod
rate_to_probability(
    for_gen::Float64,
    mttr::Int64
) -> @NamedTuple{λ::Float64, μ::Float64}
rate_to_probability(for_gen::Float64, mttr::Int64)

Converts the forced outage rate and mean time to repair to the λ and μ parameters

Arguments

  • for_gen::Float64: Forced outage rate [1/T]
  • mttr::Int64: Mean time to repair [T]

Returns

  • λ::Float64: Transition probability from online to offline [1/T]
  • μ::Float64: Transition rate from offline to online [1/T]

Reference

https://core.ac.uk/download/pdf/13643059.pdf from https://github.com/NREL-Sienna/SiennaPRASInterface.jl/blob/main/src/util/draws/drawhelperfunctions.jl

source