Skip to content

Support dangling line action in Operator Strategies #939

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

nao1345678
Copy link
Contributor

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?
Fixes #863

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

  • Yes
  • No

Naledi EL CHEIKH added 3 commits January 29, 2025 13:50
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>
Copy link

Copy link

@@ -777,6 +777,14 @@ void addLoadReactivePowerAction(const JavaHandle& analysisContext, const std::st
PowsyblCaller::get()->callJava(::addLoadReactivePowerAction, analysisContext, (char*) actionId.data(), (char*) loadId.data(), relativeValue, reactivePower);
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add the new dangling line new actions in the documentation? The list of supported actions is in the file /docs/user_guide/security.rst (section Operator strategies and remedial actions)

Naledi EL CHEIKH and others added 3 commits April 10, 2025 17:06
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 <151443525+nao1345678@users.noreply.github.com>
Comment on lines 126 to 137

The next example defines two different kinds of actions, which can be set with the `add_dangling_line_reactive_power_action` method,
and the `add_dangling_line_reactive_power_action`.

.. doctest::
:options: +NORMALIZE_WHITESPACE

>>> n = pp.network.create_eurostag_tutorial_example1_with_tie_lines_and_areas()
>>> sa = pp.security.create_analysis()
>>> sa.add_dangling_line_active_power_action('id', 'NHV1_XNODE1', False, 5.0 )
>>> sa.add_dangling_line_reactive_power_action('id', 'NHV1_XNODE1', True, 2.0 )

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the idea for the doc was to only add two line in the bloc between lines 108 and 115 to reference the new types of action

We also only recently realized that, in order to see in the doc the docstring information of python methods, we actually need to add lines to the files in docs/reference (in this case, docs/reference/security.rst, after line 69). Could you please add the missing methods of SecurityAnalysis.add_..._action to this file ?

Signed-off-by: Naledi EL CHEIKH <naledi.elcheikh@rte-france.com>
Copy link

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for review
Development

Successfully merging this pull request may close these issues.

Support DanglingLineAction in OperatorStrategies
3 participants