Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Add simulation criteria parameter #377

wants to merge 5 commits into from

Conversation

Lisrte
Copy link
Contributor

@Lisrte Lisrte commented Sep 10, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

Fixes #309

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

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>
@Lisrte Lisrte requested a review from flo-dup September 10, 2024 13:51
Copy link

sonarcloud bot commented Sep 11, 2024

setCriteriaFilePath(criteriaPath);
}

public boolean hasCriteriaFile() {
Copy link
Contributor

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()));
Copy link
Contributor

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle simulation criteria
2 participants