-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix missing buses in bus breaker view #3246
Conversation
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flo-dup thanks for this looooooooonnnnng time topology issue. Thanks to this we are now allowed to clean many bus/breaker buses (coming from node/breaker model) null buses which cannot exist anymore.
- One example (from myself...) of a bad workaround is the utility class https://github.com/powsybl/powsybl-core/blob/main/iidm/iidm-api/src/main/java/com/powsybl/iidm/network/Equipments.java which does not seem to be used in core itself but maybe in other repositories.
- Also we need to search for now unnecessary null checks.
- Maybe there are some places like in CGMES importer where we try to find some equivalent terminals (to check I'm not 100% sure) to also workaround this issue when importing a bus/breaker model.
I marked this PR as draft as some cleaning could be done following this (the connectableBus getter becomes non-nullable in bus breaker view). That is now in a separate PR, hence we can merge this. |
|
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
No
What kind of change does this PR introduce?
Bug fix
What is the current behavior?
Connectables which are not connected to any switch / internal connection in node breaker do not have a calculated bus in bus breaker view, whereas connectables which are connected to a dangling internal connection do have a calculated bus.
What is the new behavior (if this is a feature change)?
All connectables of a node breaker voltage level do have a calculated bus in bus breaker view (in particular connectables which are not connected to any switch / internal connection)
Does this PR introduce a breaking change or deprecate an API?