pypowsybl.network.Network.reduce

Network.reduce(v_min=0, v_max=1.7976931348623157e+308, ids=None, vl_depths=None, with_dangling_lines=False)[source]

Deprecated since version 1.14.0: Use reduce_by_voltage_range(), reduce_by_ids() or reduce_by_ids_and_depths() instead depending on your use case.

Reduce to a smaller network according to the following parameters

Parameters:
  • v_min (float) – minimum voltage of the voltage levels kept after reducing

  • v_max (float) – voltage maximum of the voltage levels kept after reducing

  • ids (List[str] | None) – ids of the voltage levels that will be kept

  • vl_depths (List[tuple] | None) – depth around voltage levels which are indicated by their id, that will be kept

  • with_dangling_lines (bool) – keeping the dangling lines

Return type:

None