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

CNE export no longer uses network #1157

Merged
merged 7 commits into from
Oct 9, 2024

Conversation

bqth29
Copy link
Collaborator

@bqth29 bqth29 commented Oct 7, 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)

What kind of change does this PR introduce?
To prepare the common RaoResult exporter using RaoResult.write and as presented in #1136, the CNE exporters no longer require the network as an input and the relevant information was set in the CRAC Creation Context instead.

What is the current behavior?
Need of network to export RaoResult as CNE.

What is the new behavior (if this is a feature change)?
No longer need of network to export RaoResult as CNE.

⚠️ Breaking change: the exportCne method no longer requires the Network network parameter.

bqth29 added 3 commits October 7, 2024 15:08
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
@bqth29 bqth29 added PR: waiting-for-review This PR is waiting to be reviewed cleaning This issue or pull request only concerns improving the overall state of the code breaking-change Changes could break users' code labels Oct 7, 2024
bqth29 and others added 2 commits October 7, 2024 15:51
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
@bqth29 bqth29 requested review from pet-mit and Godelaine October 7, 2024 13:51
Signed-off-by: Thomas Bouquet <thomas.bouquet@rte-france.com>
@bqth29 bqth29 mentioned this pull request Oct 7, 2024
7 tasks
Branch<?> branch = sweCneHelper.getNetwork().getBranch(networkElementId);
Branch<?> branch = cracCreationContext.getNetworkBranches().get(networkElementId);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we lose the aliases by doing it like this so we'll have to make sure it all works correctly still

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all tests, including business tests, passed

@bqth29 bqth29 requested a review from phiedw October 9, 2024 07:37
@phiedw phiedw merged commit 7c1070e into main Oct 9, 2024
10 checks passed
@phiedw phiedw deleted the cleaning/cne-export-no-longer-uses-network branch October 9, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Changes could break users' code cleaning This issue or pull request only concerns improving the overall state of the code PR: waiting-for-review This PR is waiting to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants