pypowsybl.network.Network.remove_elements#

Network.remove_elements(elements_ids)[source]#

Removes elements from the network.

Parameters:

elements_ids (str | List[str]) – IDs of the elements to be removed.

Return type:

None

Notes

Elements can be provided as a list of IDs or as a single ID.

Elements can be any identifiable object of the network (line, generator, switch, substation …).

Examples

network.remove_elements('GENERATOR-1')  # Removes only 1 element
network.remove_elements(['GENERATOR-1', 'BUS'])