pypowsybl.network.Network.reduce_by_ids¶
- Network.reduce_by_ids(ids, with_boundary_lines=False, with_dangling_lines=None)[source]¶
Reduce to a smaller network (only keeping voltage levels whose id is in the specified list)
- Parameters:
ids (List[str]) – list of the voltage level ids that should be kept in the reduced network
with_boundary_lines (bool) – whether boundary lines should be created to replace lines cut at the boundary of reduction
with_dangling_lines (bool | None) – deprecated, use with_boundary_lines instead
- Return type:
None
Example
network.reduce_by_ids(ids=["VL1", "VL2"])
will only keep voltage levels VL1 and VL2 and all network elements between them.