powsybl / powsybl-open-rao

A toolbox based on powsybl framework dedicated to power systems coordinated capacity calculation and security analysis projects
Mozilla Public License 2.0
15 stars 6 forks source link

fix(utils): filter out angle/voltage usageRules #1031

Closed MartinBelthle closed 3 months ago

MartinBelthle commented 3 months ago

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? Bug fix, some cucumber tests are broken with this issue: OpenRaoException: This method should only be used for Ofc Usage rules not for this type of UsageRule

Does this PR introduce a breaking change or deprecate an API?

Other information: Every cucumber test passed on this cucumber branch https://devin-source.rte-france.com/farao/farao-cucumber-tests/-/merge_requests/421