-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add simulation criteria parameter #377
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Quality Gate passedIssues Measures |
setCriteriaFilePath(criteriaPath); | ||
} | ||
|
||
public boolean hasCriteriaFile() { |
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.
you could use Optional<Path>
as return type for getCriteriaFilePath
instead
void testIeee14WithSimulationCriteria() { | ||
|
||
Supplier<DynamicSimulationResult> resultSupplier = setupIEEE14Simulation(); | ||
dynawoSimulationParameters.setCriteriaFilePath(Path.of(Objects.requireNonNull(getClass().getResource("/ieee14/criteria.crt")).getPath())); |
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.
I tested with a wrong xml file and the test passes... Is there any way to see that the file was correctly taken into account @gautierbureau ?
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
Fixes #309
Does this PR introduce a breaking change or deprecate an API?