pypowsybl.network.Network.create_buses

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

Creates buses in bus-breaker voltage levels.

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.

This method can only create “configured buses”, in bus-breaker voltage levels, as opposed to electrical buses computed from this underlying topology.

Valid attributes are:

  • id: the identifier of the new configured bus

  • voltage_level_id: the voltage level where the new bus will be created. The voltage level must already exist, and must have a bus-breaker topology kind.

  • name: an optional human-readable name

Examples

Using keyword arguments:

network.create_buses(id='B1', voltage_level_id='VL1')