powsybl-core icon indicating copy to clipboard operation
powsybl-core copied to clipboard

Bus-branch export produces an invalid XIIDM file

Open sylvlecl opened this issue 2 years ago • 2 comments

  • Do you want to request a feature or report a bug?

Bug

  • What is the current behavior?

See unit test in https://github.com/powsybl/powsybl-core/pull/2386

When exporting to an XIIDM file in bus-branch topology, elements may have no associated connectable bus. It causes the XIIDM file to be invalid (impossible to import).

  • What is the expected behavior?

To be decided:

  • do not export those elements ? but it can be difficult to handle if it is referenced elsewhere
  • try harder to find a connectable bus ?

sylvlecl avatar Dec 02 '22 14:12 sylvlecl

@annetill @miovd @geofjamg @EtienneLt After discussion: it appears it is "known" that the bus-branch export is not supported

--> we should remove completely the support for that export parameter

Is it agreed ? Of course it's a breaking change. We can document that it could be replaced by the bus-breaker export where the retained switches are configured according to the needs.

sylvlecl avatar Dec 05 '22 12:12 sylvlecl

@annetill @miovd @geofjamg @EtienneLt After discussion: it appears it is "known" that the bus-branch export is not supported

--> we should remove completely the support for that export parameter

Is it agreed ? Of course it's a breaking change. We can document that it could be replaced by the bus-breaker export where the retained switches are configured according to the needs.

Please note before taking a decision that there are users of the feature (dynawo project and ELM for example use the bus-branch export to run their calculations).

miovd avatar Dec 05 '22 13:12 miovd