roseau.load_flow.io.dgs#

This module is not for public use.

Use the ElectricalNetwork.from_dgs method to read a network from a dgs file.

Module Contents#

Functions#

network_from_dgs(...)

Create the electrical elements from a JSON file in DGS format.

network_from_dgs(filename: StrPath) tuple[dict[Id, Bus], dict[Id, AbstractBranch], dict[Id, AbstractLoad], dict[Id, VoltageSource], dict[Id, Ground], dict[Id, PotentialRef]]#

Create the electrical elements from a JSON file in DGS format.

Parameters:

filename – name of the JSON file

Returns:

buses, branches, loads, sources, grounds and potential refs.

Return type:

The elements of the network