-
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
PSSE. copy of the imported PSSE model to make the updates and export #2946
Conversation
…copy) Signed-off-by: José Antonio Marqués <marquesja@aia.es>
I think it would be better to deep copy all the record groups when preparing the updated data, instead of deep copy some of them and keeping references for others. If later we have to make updates in a record group that is only saved as a reference we have to remember to make the deep copy first. |
Signed-off-by: José Antonio Marqués <marquesja@aia.es> # Conflicts: # psse/psse-converter/src/test/java/com/powsybl/psse/converter/PsseExporterTest.java
We can think about it. |
This is true that it would be maybe more robust to deep copy everything but let's do it later in another PR. |
Quality Gate passedIssues Measures |
…copy)
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
What kind of change does this PR introduce?
Feature
What is the current behavior?
The original psse records are updated before exporting them.
What is the new behavior (if this is a feature change)?
Original psse records are always preserved. A partial copy, only the updated record groups are copied, is made before updating them.
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: