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

Fix PTC action support and support of RTC action #862

Merged
merged 34 commits into from
Oct 17, 2023
Merged

Conversation

Hadrien-Godard
Copy link
Member

@Hadrien-Godard Hadrien-Godard commented Sep 28, 2023

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?
Bugfix

What is the current behavior?
Currently, PTC and RTC PI model does not include tap positions if regulation is deactivated. This is an issue if the PST or RTC is involved in operator strategies / actions.

What is the new behavior (if this is a feature change)?
This PR allows PTC and RTC to be retained also when they are involved in operator strategies / actions.
With this PR, PTC and RTC pimodel contains tap positions if the PTC and RTC is involved not only in regulation but also in at least one action in a security analysis run.

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

Other information:

none

@Hadrien-Godard Hadrien-Godard self-assigned this Sep 28, 2023
Hadrien-Godard and others added 6 commits September 28, 2023 15:44
Signed-off-by: Hadrien <[email protected]>
Signed-off-by: Hadrien <[email protected]>
Signed-off-by: Hadrien <[email protected]>
Signed-off-by: Anne Tilloy <[email protected]>
Signed-off-by: Anne Tilloy <[email protected]>
@@ -523,15 +524,15 @@ public static <T> List<LfNetwork> load(T network, LfNetworkLoader<T> networkLoad
return load(network, networkLoader, parameters, Reporter.NO_OP);
}

public static <T> List<LfNetwork> load(T network, LfNetworkLoader<T> networkLoader, SlackBusSelector slackBusSelector, Reporter reporter) {
Copy link
Member

Choose a reason for hiding this comment

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

This removal is okay for me, to be confirmed by @geofjamg

Copy link
Member

Choose a reason for hiding this comment

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

yes

Signed-off-by: Anne Tilloy <[email protected]>
Signed-off-by: Anne Tilloy <[email protected]>
Signed-off-by: Anne Tilloy <[email protected]>
Signed-off-by: Anne Tilloy <[email protected]>
@annetill annetill changed the title Retain pst and rtc for actions Fix PTC action support and support of RTC action Oct 12, 2023
@annetill annetill requested a review from geofjamg October 12, 2023 09:55
@@ -22,6 +22,10 @@ public class LfTopoConfig {

private final Set<String> busIdsToLose = new HashSet<>();

private final Set<String> branchIdsWithPtcToRetain = new HashSet<>();
Copy link
Member

Choose a reason for hiding this comment

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

For later, but maybe we should find a better name for LfTopoConfig once this will be added?

Copy link
Member

Choose a reason for hiding this comment

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

We can do it now, shunt compensator action is coming just after, what do you suggest ?

Copy link
Member

Choose a reason for hiding this comment

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

Could be a LfNetworkLoadingParameters

Copy link
Member

Choose a reason for hiding this comment

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

I think we can leave it like this and re-think about it with shunt compensator action.

Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 8 Code Smells

96.0% 96.0% Coverage
0.0% 0.0% Duplication

@annetill annetill merged commit 7b29ad8 into main Oct 17, 2023
6 checks passed
@annetill annetill deleted the retain_pst_for_actions branch October 17, 2023 09:06
geofjamg pushed a commit that referenced this pull request Oct 17, 2023
Signed-off-by: Hadrien <[email protected]>
Co-authored-by: Anne Tilloy <[email protected]>
Co-authored-by: Damien Jeandemange <[email protected]>
geofjamg pushed a commit that referenced this pull request Oct 17, 2023
Signed-off-by: Hadrien <[email protected]>
Co-authored-by: Anne Tilloy <[email protected]>
Co-authored-by: Damien Jeandemange <[email protected]>
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.

4 participants