powsybl / pypowsybl

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

[Network modifications] Fix: no exception should be thrown if boolean throwException is false #701

Closed colinepiloquet closed 8 months ago

colinepiloquet commented 8 months 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?

The boolean raise_exception is ignored when using network modifications.

What is the new behavior (if this is a feature change)? When creating a feeder bay, if the boolean is true, an exception will be thrown, same for the creation of a line or a two windings transformer.

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

colinepiloquet commented 8 months ago

To be tested on creation of elements without bay