powsybl / powsybl-core

A framework to build power system oriented software

Home Page:https://www.powsybl.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RemoveFeederBay does not remove linked switches when a component is removed from a busbreaker model

marqueslanauja opened this issue · comments

Describe the current behavior

In busBreaker models, when I remove a ground component that is connected to the main bus throughout a breaker, only the ground component is removed. The breaker and the bus where the ground was connected remain in the model.

Describe the expected behavior

The breaker and the bus where the ground was connected have also to be removed.

Describe the steps

#2879 includes a unitary test reproducing the bug.

Diagram of the model before removing the ground

image

Diagram of the model after removing the ground

image

Environment

No response

Relevant Log Output

No response

Extra Information

No response

To be confirmed by @flo-dup but I think it is the normal behavior.

yes, this is the "normal" behavior: in bus breaker view, RemoveFeederBay only disconnects the equipment.

Which behaviour would you expect? Similarly to node breaker view, removing all breakers and buses until you encounter a fork or another equipment?

yes, this is the "normal" behavior: in bus breaker view, RemoveFeederBay only disconnects the equipment.

Which behaviour would you expect? Similarly to node breaker view, removing all breakers and buses until you encounter a fork or another equipment?

Yes. This is the behaviour that I expect.