-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not allow switches with the same node or bus at both ends. #1991
Do not allow switches with the same node or bus at both ends. #1991
Conversation
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
Signed-off-by: José Antonio Marqués <marquesja@aia.es>
…_the_same_node_or_bus
…_the_same_node_or_bus
Could you please add something clever (no idea right now) to handle compatibility with old XIIDM files that can allow this configuration? |
… same node or bus. Signed-off-by: José Antonio Marqués <marquesja@aia.es>
We decided to handle compatibility with old XIIDM files by discarding switches with the same node or bus. This verification is always done independently of the XIIDM version. |
…_the_same_node_or_bus
…_the_same_node_or_bus
…discard switches with same ends during writing (for example for calculated views) Signed-off-by: VEDELAGO MIORA <miora.ralambotiana@rte-france.com>
Hello @marqueslanauja @zamarrenolm I made some modifications to add to your work:
Do you agree? If yes, it is good for me! |
Signed-off-by: VEDELAGO MIORA <miora.ralambotiana@rte-france.com>
It is ok for me. Thanks. |
…_the_same_node_or_bus
Kudos, SonarCloud Quality Gate passed! |
Signed-off-by: José Antonio Marqués marquesja@aia.es
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)Does this PR already have an issue describing the problem ? If so, link to this issue using
'#XXX'
and skip the restWhat kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature
What is the current behavior? (You can also link to an open issue here)
Switches with the same node or bus at both ends are allowed.
What is the new behavior (if this is a feature change)?
An exception is thrown when a switch with the same node or bus at both ends is added.
Does this PR introduce a breaking change or deprecate an API? If yes, check the following:
Other information:
(if any of the questions/checkboxes don't apply, please delete them entirely)