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

Allow zero value for limits in loading limits #3061

Merged
merged 7 commits into from
Jun 27, 2024
Merged

Conversation

nao1345678
Copy link
Contributor

@nao1345678 nao1345678 commented Jun 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)

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?
You could not add permanent or temporary limits to 0 (for LoadingLimits).

What is the new behavior (if this is a feature change)?
It is now allowed to set a value equal to zero in a LoadingLimits (for permanent and temporary limits).

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

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

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

This is not really a breaking change, but you should be aware that LoadingLimits can now be imported/created with a zero value for permanent or temporary limits.
As a consequence, you can now have a Double.NaN if you divide something by one of these limits.

For custom IIDM implementation maintainers:
You should now allow 0 as a value for permanent and temporary limits.

Signed-off-by: Naledi EL CHEIKH <naledi.elcheikh@rte-france.com>
@HugoKulesza HugoKulesza self-requested a review June 7, 2024 14:43
Naledi EL CHEIKH added 2 commits June 12, 2024 14:21
Signed-off-by: Naledi EL CHEIKH <naledi.elcheikh@rte-france.com>
Signed-off-by: Naledi EL CHEIKH <naledi.elcheikh@rte-france.com>
Signed-off-by: Naledi EL CHEIKH <naledi.elcheikh@rte-france.com>
Signed-off-by: Naledi EL CHEIKH <naledi.elcheikh@rte-france.com>
@nao1345678 nao1345678 requested a review from olperr1 June 27, 2024 14:22
Signed-off-by: Naledi EL CHEIKH <naledi.elcheikh@rte-france.com>
Copy link

@olperr1 olperr1 added Breaking Change API is broken and removed Breaking Change API is broken labels Jun 27, 2024
@olperr1 olperr1 changed the title Allow zero value in loading limit Allow zero value for limits in loading limits Jun 27, 2024
@olperr1 olperr1 merged commit 6582805 into main Jun 27, 2024
7 checks passed
@olperr1 olperr1 deleted the limit-with-zero-values branch June 27, 2024 15:27
olperr1 pushed a commit that referenced this pull request Jul 1, 2024
* allow zero value in loading limit

Signed-off-by: Naledi EL CHEIKH <naledi.elcheikh@rte-france.com>
(cherry picked from commit 6582805)
geofjamg pushed a commit that referenced this pull request Sep 18, 2024
* allow zero value in loading limit

Signed-off-by: Naledi EL CHEIKH <naledi.elcheikh@rte-france.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants