pypowsybl.network.Network.create_dc_nodes

Network.create_dc_nodes(df=None, **kwargs)[source]

Creates DC nodes.

Parameters:
  • df (DataFrame | None) – Attributes as a dataframe.

  • kwargs (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) – Attributes as keyword arguments.

Return type:

None

Notes

Data may be provided as a dataframe or as keyword arguments. In the latter case, all arguments must have the same length.

Valid attributes are:

  • id: the identifier of the new DC node

  • name: an optional human-readable name

  • nominal_v: the nominal voltage of the DC node

Examples

Using keyword arguments:

network.create_dc_nodes(id='DN1', nominal_v=400.0)