Voltage Mappers#

class shift.BaseVoltageMapper(graph: DistributionGraph)#

Abstract class for mapping voltage to transformers

Subclasses must implement following method. * transformer_voltage_mapping

Parameters:

graph (DistributionGraph) – Instance of DistributionGraph for which to implement voltage mapping.

abstract property node_voltage_mapping: dict[str, Voltage]#

Returns dictionary mapping node name to line to ground voltage.

Return type:

dict[str, tuple[Voltage, Voltage]]

class shift.TransformerVoltageMapper(graph: DistributionGraph, xfmr_voltage: list[TransformerVoltageModel])#

Bases: BaseVoltageMapper

Class for mapping voltage to buses based on transformer voltage.

Parameters:
property node_voltage_mapping: dict[str, Voltage]#

Returns dictionary mapping node name to line to ground voltage.

Return type:

dict[str, tuple[Voltage, Voltage]]