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 merging loads #213

Merged
merged 8 commits into from
May 5, 2023
Merged

Fix merging loads #213

merged 8 commits into from
May 5, 2023

Conversation

flo-dup
Copy link
Contributor

@flo-dup flo-dup commented Apr 21, 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?

Bug fix + refactor

What is the current behavior?

Loads are accessed after being removed, which leads in some implementations to a crash

What is the new behavior (if this is a feature change)?
Loads are not accessed once removed, and cannot be accessed in LoadsToMerge object anymore

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

Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@flo-dup flo-dup requested a review from geofjamg April 21, 2023 15:56
flo-dup and others added 7 commits April 24, 2023 10:51
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@sonarcloud
Copy link

sonarcloud bot commented May 5, 2023

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 0 Code Smells

98.1% 98.1% Coverage
0.0% 0.0% Duplication

@flo-dup flo-dup merged commit 94e9d98 into main May 5, 2023
6 checks passed
@flo-dup flo-dup deleted the fix_merge_loads branch May 5, 2023 15:03
Lisrte pushed a commit that referenced this pull request May 10, 2023
* Fix merging loads
* Rename enum into LoadPowersSigns
* LoadAdder created in LoadsToMerge constructor
* Build list of loads to merge only per voltage level
* Simplify code by using streams
* Merge done in LoadsToMerge

Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
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.

None yet

2 participants