Skip to content

Distribution in station controller - #2898

Draft
MMatthiessen wants to merge 79 commits into
e2nIEE:developfrom
MMatthiessen:distribution_in_station_controller
Draft

Distribution in station controller#2898
MMatthiessen wants to merge 79 commits into
e2nIEE:developfrom
MMatthiessen:distribution_in_station_controller

Merge remote-tracking branch 'origin/distribution_in_station_controll…

96f6e4f
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 30, 2026 in 1m 15s

Quality Gate failed

Annotations

Check warning on line 778 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Complete the task associated to this "TODO" comment.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gABD&open=AZ8X7frREmJQFMF_gABD&pullRequest=2898

Check warning on line 4225 in pandapower/converter/powerfactory/pp_import_functions.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Complete the task associated to this "TODO" comment.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7fkGEmJQFMF_gAA6&open=AZ8X7fkGEmJQFMF_gAA6&pullRequest=2898

Check warning on line 707 in pandapower/test/control/test_stactrl.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Complete the task associated to this "TODO" comment.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7foCEmJQFMF_gAA7&open=AZ8X7foCEmJQFMF_gAA7&pullRequest=2898

Check failure on line 842 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "np.nonzero" when only the condition parameter is provided to "np.where".

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gABG&open=AZ8X7frREmJQFMF_gABG&pullRequest=2898

Check failure on line 532 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gABC&open=AZ8X7frREmJQFMF_gABC&pullRequest=2898

Check failure on line 835 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "np.nonzero" when only the condition parameter is provided to "np.where".

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gABE&open=AZ8X7frREmJQFMF_gABE&pullRequest=2898

Check failure on line 104 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 105 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gAA9&open=AZ8X7frREmJQFMF_gAA9&pullRequest=2898

Check failure on line 523 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gABB&open=AZ8X7frREmJQFMF_gABB&pullRequest=2898

Check failure on line 317 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gAA-&open=AZ8X7frREmJQFMF_gAA-&pullRequest=2898

Check failure on line 2486 in pandapower/converter/powerfactory/pp_import_functions.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal 'av_mode: %s' 3 times.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7fkGEmJQFMF_gAA3&open=AZ8X7fkGEmJQFMF_gAA3&pullRequest=2898

Check warning on line 932 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Complete the task associated to this "TODO" comment.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gABI&open=AZ8X7frREmJQFMF_gABI&pullRequest=2898

Check warning on line 108 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Method "__init__" has 22 parameters, which is greater than the 13 authorized.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gAA8&open=AZ8X7frREmJQFMF_gAA8&pullRequest=2898

Check failure on line 376 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gABA&open=AZ8X7frREmJQFMF_gABA&pullRequest=2898

Check warning on line 4231 in pandapower/converter/powerfactory/pp_import_functions.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "distribution".

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7fkGEmJQFMF_gAA5&open=AZ8X7fkGEmJQFMF_gAA5&pullRequest=2898

Check failure on line 326 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gAA_&open=AZ8X7frREmJQFMF_gAA_&pullRequest=2898

Check failure on line 844 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "np.nonzero" when only the condition parameter is provided to "np.where".

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gABH&open=AZ8X7frREmJQFMF_gABH&pullRequest=2898

Check warning on line 4109 in pandapower/converter/powerfactory/pp_import_functions.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "bus_dict_stactrl".

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7fkGEmJQFMF_gAA4&open=AZ8X7fkGEmJQFMF_gAA4&pullRequest=2898

Check failure on line 837 in pandapower/control/controller/station_control.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "np.nonzero" when only the condition parameter is provided to "np.where".

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7frREmJQFMF_gABF&open=AZ8X7frREmJQFMF_gABF&pullRequest=2898

Check failure on line 695 in pandapower/convert_format.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ8X7fr0EmJQFMF_gABJ&open=AZ8X7fr0EmJQFMF_gABJ&pullRequest=2898