-
Notifications
You must be signed in to change notification settings - Fork 50
Fix export with custom voltage level topology #3659
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
Conversation
Signed-off-by: Olivier Perrin <[email protected]>
| context.getWriter().writeStringAttribute("voltageLevelId" + index, context.getAnonymizer().anonymizeString(t.getVoltageLevel().getId())); | ||
| } | ||
| TopologyLevel topologyLevel = TopologyLevel.min(t.getVoltageLevel().getTopologyKind(), context.getOptions().getTopologyLevel()); | ||
| TopologyLevel topologyLevel = TopologyLevelUtil.determineTopologyLevel(t.getVoltageLevel(), context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#3614 introduces a new writeNodeOrBus() method in ConnectableSerDeUtil.
This change should be reported in it too.
rolnico
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Fix export with custom voltage level topology (#3659) Signed-off-by: Olivier Perrin <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
* dcNode, dcGround, dcLine, dcSwitch * fix equipment xsd * VSC reactive limits * AcDcConverter pccTerminal, DC terminals P & I * TerminalRefSerDe support for TerminalNumber * DcNode, DcGround, DcLine, DcSwitch serde test * LineCommutatedConverter, VoltageSourceConverter serde test * backward (in)compatibility tests * refactor read/write DcTerminal P&I * doc update * Allow setting AC/DC Converter PCC Terminal to be the converter first terminal * DcTerminal P&I SerDe: always dcP<num> and dcI<num> * Add control mode P_PCC_DROOP and DroopCurve Serde * future iidm versions > 1.15 will run backward compatibility tests * ConnectableSerDeUtil uses the new TopologyLevelUtil from #3659 * test export converter with VL TopologyLevel bus/branch Signed-off-by: Damien Jeandemange <[email protected]>



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?
At IIDM export, when a specific topology level is specified for a voltage level, the generated file is invalid: the nodes or busses are correctly described, but the connectables may be incorrect (
nodeattributes instead ofbus/connectableBus).What is the new behavior (if this is a feature change)?
The generated files are valid.
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:
Fix problem with #3547