powsybl-core
powsybl-core copied to clipboard
[WIP] [Network Modification] Move method returning feeder by connectable in TopologyModificationUtils from pypowsybl
Please check if the PR fulfills these requirements (please use '[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
Does this PR already have an issue describing the problem ? If so, link to this issue using '#XXX'
and skip the rest
No
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...) Moves code from pypowsybl to core, it makes more sense that it's there with all the other methods linked to topology modification. The rest of the code is also refactored. The PR in pypowsybl is not merged yet.
More tests of situations returning an empty list should be added.
@colinepiloquet There are some failure tests, can you check?
I fixed the test! It should be good now.