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 a border attribute to cnecs #1017

Merged
merged 4 commits into from
May 24, 2024
Merged

Add a border attribute to cnecs #1017

merged 4 commits into from
May 24, 2024

Conversation

phiedw
Copy link
Collaborator

@phiedw phiedw commented May 21, 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?

No

What kind of change does this PR introduce?

Feature

What is the current behavior?

Cnecs do not have a border attribute

What is the new behavior (if this is a feature change)?
They now do (FlowCnecs, VoltageCnecs and AngleCnecs)

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

  • Yes
  • No

What changes might users need to make in their application due to this PR? (migration steps)

They may now add adapt importers to add the border information if they so wish.

Other information:

This is done for the cse swa process, where the dichotomy algorithm needs to know to which border each cnec belongs to, to know where to do counter trading.

@phiedw phiedw added the feature New feature or request label May 21, 2024
@phiedw phiedw marked this pull request as draft May 21, 2024 15:33
@phiedw
Copy link
Collaborator Author

phiedw commented May 21, 2024

Documentation needs to be added.

@phiedw
Copy link
Collaborator Author

phiedw commented May 22, 2024

The csa importer could probably be updated as well to start using this.

@phiedw phiedw marked this pull request as ready for review May 24, 2024 12:13
@phiedw phiedw added the PR: waiting-for-review This PR is waiting to be reviewed label May 24, 2024
@OpenSuze OpenSuze self-requested a review May 24, 2024 12:14
Comment on lines +25 to +26
protected final String operator;
protected final String border;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I appreciate this :)

@phiedw phiedw merged commit ad6ef75 into main May 24, 2024
9 checks passed
@phiedw phiedw deleted the cnec_border branch May 24, 2024 13:10
MartinBelthle pushed a commit that referenced this pull request May 28, 2024
* added border to all cnecs and json serializers/deserializers

Signed-off-by: Philippe Edwards <[email protected]
Signed-off-by: belthlemar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request PR: waiting-for-review This PR is waiting to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants