Skip to content

[Feature] Distribution factor analysis toolkit. - #2822

Open
vogt31337 wants to merge 17 commits into
developfrom
feature/psdf
Open

[Feature] Distribution factor analysis toolkit.#2822
vogt31337 wants to merge 17 commits into
developfrom
feature/psdf

added a changelog entry.

988833b
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Apr 13, 2026 in 2m 7s

Annotations

Check warning on line 194 in pandapower/analysis/utils.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

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

Check failure on line 222 in pandapower/analysis/PTDF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 136 in pandapower/test/analysis/test_distribution_factors.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a "numpy.random.Generator" here instead of this legacy function.

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

Check failure on line 495 in pandapower/analysis/PTDF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check failure on line 559 in pandapower/analysis/PTDF.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=AZ1UUFwJ0oCGqJGnvH7K&open=AZ1UUFwJ0oCGqJGnvH7K&pullRequest=2822

Check warning on line 82 in pandapower/analysis/PSDF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable "Bd" to match the regular expression ^[_a-z][a-z0-9_]*$.

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

Check failure on line 288 in pandapower/analysis/PTDF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 113 in pandapower/test/analysis/test_distribution_factors.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "ptdf_t3w".

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

Check warning on line 74 in pandapower/analysis/PSDF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable "Cft" to match the regular expression ^[_a-z][a-z0-9_]*$.

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

Check failure on line 210 in pandapower/analysis/LODF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 121 in pandapower/test/analysis/test_distribution_factors.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "res_profiles_full".

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

Check warning on line 274 in pandapower/analysis/utils.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

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

Check warning on line 138 in pandapower/test/analysis/test_distribution_factors.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "res_profiles_partial".

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

Check warning on line 99 in pandapower/analysis/LODF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Provide a seed for this random generator.

See more on https://sonarcloud.io/project/issues?id=e2nIEE_pandapower&issues=AZ12OIg-kpOC1dcbiH7P&open=AZ12OIg-kpOC1dcbiH7P&pullRequest=2822

Check warning on line 28 in pandapower/analysis/PSDF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this parameter "baseMVA" to match the regular expression ^[_a-z][a-z0-9_]*$.

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

Check warning on line 499 in pandapower/analysis/LODF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this variable; it shadows a builtin.

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

Check failure on line 27 in pandapower/analysis/LODF.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=AZ12FtMtIXK3d2b_ND1N&open=AZ12FtMtIXK3d2b_ND1N&pullRequest=2822

Check warning on line 56 in pandapower/test/analysis/test_distribution_factors.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a "numpy.random.Generator" here instead of this legacy function.

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

Check warning on line 371 in pandapower/analysis/PTDF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

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

Check warning on line 25 in pandapower/pypower/makePTDF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this parameter "baseMVA" to match the regular expression ^[_a-z][a-z0-9_]*$.

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

Check warning on line 107 in pandapower/analysis/PSDF.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=AZ12FtQ7IXK3d2b_ND1R&open=AZ12FtQ7IXK3d2b_ND1R&pullRequest=2822

Check failure on line 343 in pandapower/analysis/LODF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 94 in pandapower/analysis/PSDF.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "random_verify".

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

Check warning on line 25 in pandapower/pypower/makePTDF.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=AZ1U6KLATIwSMyARK6pb&open=AZ1U6KLATIwSMyARK6pb&pullRequest=2822

Check failure on line 128 in pandapower/analysis/utils.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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