Internal

PowerAnalytics.combine_categoriesMethod
combine_categories(
    data::Union{Dict{String, DataFrames.DataFrame}, Dict{Symbol, DataFrames.DataFrame}};
    names,
    aggregate
) -> Any

aggregates and combines data into single DataFrame

Example

PG.combine_categories(gen_uc.data)
source
PowerAnalytics.get_generator_categoryMethod
get_generator_category(
    gentype,
    fuel,
    primemover,
    ext,
    mappings::Dict{NamedTuple, String}
) -> Union{Nothing, String}

Return the generator category for this fuel and unit_type.

source
PowerAnalytics.get_generator_mappingFunction
get_generator_mapping() -> Dict{NamedTuple, String}
get_generator_mapping(filename) -> Dict{NamedTuple, String}

Return a dict where keys are a tuple of input parameters (fuel, unit_type) and values are generator types.

source
PowerAnalytics.lookup_gentypeMethod
lookup_gentype(gentype::AbstractString) -> Any

Parse the gentype to a type. This is done by first checking whether gentype is qualified (ModuleName.TypeName). If so, the module is fetched from the Main scope and the type name is fetched from the module. If not, we default to fetching from PowerSystems for convenience.

source
PowerAnalytics.make_component_metric_from_entryMethod
make_component_metric_from_entry(
    name::String,
    key::Type{<:Union{InfrastructureSystems.Optimization.AuxVariableType, InfrastructureSystems.Optimization.ExpressionType, InfrastructureSystems.Optimization.InitialConditionType, InfrastructureSystems.Optimization.ParameterType, InfrastructureSystems.Optimization.VariableType}}
) -> ComponentTimedMetric

Convenience function to convert an EntryType to a function and make a ComponentTimedMetric from it

source
PowerAnalytics.make_entry_kwargsMethod
make_entry_kwargs(key_tuples::Vector{<:Tuple}) -> Vector

Sort a vector of key tuples into variables, parameters, etc. like PSI.load_results! wants

source
PowerAnalytics.make_keyFunction

Create a PSI.OptimizationContainerKey from the given key entry type and component.

Arguments

  • entry::Type{<:EntryType}: the key entry
  • component (::Type{<:Union{Component, PSY.System}} or ::Type{<:Component} depending on the key type): the component type
source
PowerAnalytics.make_system_metric_from_entryMethod
make_system_metric_from_entry(
    name::String,
    key::Type{<:Union{InfrastructureSystems.Optimization.ExpressionType, InfrastructureSystems.Optimization.VariableType}}
) -> SystemTimedMetric

Convenience function to convert a SystemEntryType to a function and make a SystemTimedMetric from it

source
PowerAnalytics.read_component_resultMethod
read_component_result(
    res::InfrastructureSystems.Results,
    entry::Type{<:Union{InfrastructureSystems.Optimization.AuxVariableType, InfrastructureSystems.Optimization.ExpressionType, InfrastructureSystems.Optimization.InitialConditionType, InfrastructureSystems.Optimization.ParameterType, InfrastructureSystems.Optimization.VariableType}},
    comp::PowerSystems.Component;
    start_time,
    len
) -> Any

Given an EntryType and a Component, fetch a single column of results

source
PowerAnalytics.read_system_resultMethod
read_system_result(
    res::InfrastructureSystems.Results,
    entry::Type{<:Union{InfrastructureSystems.Optimization.ExpressionType, InfrastructureSystems.Optimization.VariableType}};
    start_time,
    len
) -> Any

Given an EntryType that applies to the System, fetch a single column of results

source