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 JsonContingencyListLoader to load all json contingency lists #2945

Merged
merged 3 commits into from
Mar 21, 2024

Conversation

HugoKulesza
Copy link
Contributor

@HugoKulesza HugoKulesza commented Mar 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?

Bug fix

What is the current behavior?

Using ContingencyList.load(path) on json contingency lists only works if the list is a DefaultContingencyList and for no other type of contingency list.

What is the new behavior (if this is a feature change)?
It is now possible to load all json contingency lists (identifier, list of lists...) using ContingencyList.load()

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)

Other information:

Signed-off-by: Hugo KULESZA <hugo.kulesza@rte-france.com>
Signed-off-by: Hugo KULESZA <hugo.kulesza@rte-france.com>
@HugoKulesza HugoKulesza self-assigned this Mar 21, 2024
Signed-off-by: Hugo KULESZA <hugo.kulesza@rte-france.com>
@EtienneLt EtienneLt requested a review from olperr1 March 21, 2024 13:58
Copy link

sonarcloud bot commented Mar 21, 2024

@olperr1 olperr1 merged commit 106b748 into main Mar 21, 2024
6 checks passed
@olperr1 olperr1 deleted the generify-contingency-loader branch March 21, 2024 15:36
rcourtier pushed a commit that referenced this pull request Mar 22, 2024
…2945)

* allow JsonContingencyListLoader to load all json contingency lists

Signed-off-by: Hugo KULESZA <hugo.kulesza@rte-france.com>

---------

Signed-off-by: Hugo KULESZA <hugo.kulesza@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.

3 participants