pypowsybl.network.get_unused_order_positions_after#

get_unused_order_positions_after(network, busbar_section_id)[source]#

Gets all the available order positions after a busbar section.

Parameters:
  • network (Network) – the network in which the busbar section is.

  • busbar_section_id (str) – the id of the busbar section from which we want to get all the available positions after.

Return type:

Optional[Interval]

Notes

Gets all the available positions between the highest used position of a given busbar section and the lowest used position of the busbar section with the section index equal to the section index of the given busbar section plus one. The result is a list with the lowest available value as the first integer and the highest available value as the second integer. About order positions: order positions represent the relative positions of every connectable compared to each other on a busbar section. It is filled in the ConnectablePosition extension under Order. Each connectable has as many positions as it has feeders.

Examples

Let’s take two busbar sections. The first one, bbs1, has 3 feeders with taken order positions 5,6,7. The second, bbs2 has two feeder with taken order positions 11 and 12. Then, get_unused_order_positions_after(bbs1) will return [8, 10] as an interval and get_unused_order_positions_before(bbs2) will return [13, +infinity] as an interval.