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:
- 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.