Skip to content

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
@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

}

void addLoadReactivePowerAction(const JavaHandle& analysisContext, const std::string& actionId, const std::string& loadId, bool relativeValue, double reactivePower) {
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 <[email protected]>
Signed-off-by: Naledi EL CHEIKH <[email protected]>
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 <[email protected]>
@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

@HugoKulesza
Copy link
Collaborator

Waiting for powsybl/powsybl-open-loadflow#1102 to be merged (-> release train of september)

@alicecaron alicecaron moved this from TODO to Waiting for review in Release 09/2025 Jul 4, 2025
@alicecaron alicecaron moved this from TODO to In Progress in Release 12/2025 Oct 3, 2025
@alicecaron alicecaron moved this from TODO to In Progress in Release 09/2025 Oct 3, 2025
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

4 participants