powsybl / pypowsybl

A PowSyBl and Python integration based on GraalVM native image
Mozilla Public License 2.0
52 stars 10 forks source link

Fix crash when creating a feeder bay using an empty dataframe #755

Closed geofjamg closed 1 month ago

geofjamg commented 1 month ago

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?

When creating for instance a load feeder bay with an empty load dataframe, we get a crash (segv).

What is the new behavior (if this is a feature change)? A check has been added to avoir the crash.

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

If yes, please check if the following requirements are fulfilled

What changes might users need to make in their application due to this PR? (migration steps)

Other information: