-
Notifications
You must be signed in to change notification settings - Fork 0
enable override of 'validity' property for injections and branches (used in estim/adn-in) #153
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
base: main
Are you sure you want to change the base?
Conversation
…sed in estim/adn-in) Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
Signed-off-by: David BRAQUART <david.braquart@rte-france.com>
Signed-off-by: David BRAQUART <david.braquart@rte-france.com>
|
dbraquart
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.
code: 1 change required
tests: found a test case with a 2WT having no Measurement extension, where I could not create the extension after modification apply.
src/main/java/org/gridsuite/modification/utils/ModificationUtils.java
Outdated
Show resolved
Hide resolved
|
|
||
| private void upsertMeasurement(Measurements<?> measurements, Measurement.Type type, Double value, Boolean validity, List<ReportNode> reports) { | ||
| if (value == null && validity == null) { | ||
| private void upsertMeasurement(Measurements<?> measurements, Measurement.Type type, Double value, Boolean requestedValidity, List<ReportNode> reports) { |
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.
This function is pretty much the same than in BranchModification, except the "Side" ascpect ... hum dont know if it's better with or without a common function.



PR Summary
Enable override of 'validity' property for injections and branches (used in estim/adn-in).
estim-intregation uses both 'validity' property and 'valid' boolean from Measurement IIDM extension, to compute the ADN 4-state "valid" attribute in ptm and qtm xml nodes.
Then apply() method should do the same when a modification wants to force the validity of a P/Q TM.