-
Notifications
You must be signed in to change notification settings - Fork 4
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
Import mnecs #925
Import mnecs #925
Conversation
Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
return aeSecuredForRegion.map(rawRegionId -> rawRegionId.substring(rawRegionId.lastIndexOf("/") + 1).equals(regionEic)).orElse(false); | ||
} |
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.
Instead of lastIndexOf("/")
I think it could be interesting to use the structure of an EIC code which is 16-character long and only accepts uppercase letters, digits, +, - and _. Maybe you could you get the EIC code with a regex like:
http://energy.referencedata.eu/energy/EIC/((?:[A-Z]|[0-9]|_|-|\+){16})
return aeScannedForRegion.map(rawRegionId -> rawRegionId.substring(rawRegionId.lastIndexOf("/") + 1).equals(regionEic)).orElse(false); | ||
} |
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.
Same regex comment
...java/com/powsybl/openrao/data/craccreation/creator/csaprofile/craccreator/cnec/MnecTest.java
Outdated
Show resolved
Hide resolved
...raccreation/creator/csaprofile/craccreator/parameters/JsonCsaCracCreationParametersTest.java
Outdated
Show resolved
Hide resolved
...raccreation/creator/csaprofile/craccreator/parameters/JsonCsaCracCreationParametersTest.java
Outdated
Show resolved
Hide resolved
...java/com/powsybl/openrao/data/craccreation/creator/csaprofile/craccreator/cnec/MnecTest.java
Outdated
Show resolved
Hide resolved
...java/com/powsybl/openrao/data/craccreation/creator/csaprofile/craccreator/cnec/MnecTest.java
Show resolved
Hide resolved
...l/openrao/data/craccreation/creator/csaprofile/parameters/JsonCsaCracCreationParameters.java
Show resolved
Hide resolved
...wsybl/openrao/data/craccreation/creator/csaprofile/parameters/CsaCracCreationParameters.java
Outdated
Show resolved
Hide resolved
Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
* add csa crac creation parameters Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com> * mnec test Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com> * adapt unit test to new test structure after merge with master Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com> * fix after review Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com> --------- Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com> Signed-off-by: jipea <arnould.jp@gmail.com>
* add csa crac creation parameters Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com> * mnec test Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com> * adapt unit test to new test structure after merge with master Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com> * fix after review Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com> --------- Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com> Signed-off-by: belthlemar <martin.belthle@rte-france.com>
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?
What is the current behavior?
What is the new behavior (if this is a feature change)?
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: