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, PositiveVoltage]#

Returns dictionary mapping node name to line to ground voltage.

Return type:

dict[str, tuple[PositiveVoltage, PositiveVoltage]]