Skip to content

Jao converter - #2755

Open
lezneew wants to merge 30 commits into
e2nIEE:developfrom
lezneew:JAO-converter
Open

Jao converter#2755
lezneew wants to merge 30 commits into
e2nIEE:developfrom
lezneew:JAO-converter

Conversation

@lezneew

@lezneew lezneew commented Oct 15, 2025

Copy link
Copy Markdown
Contributor

converter now uses fuzzy matching with difflib module to find matching buses instead of using hard coded name corrections as well as table column names if they are inconsistent between files

@codecov

codecov Bot commented Oct 15, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 72.86432% with 216 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.59%. Comparing base (6478e1c) to head (32987c1).
⚠️ Report is 114 commits behind head on develop.

Files with missing lines Patch % Lines
pandapower/converter/jao/utils.py 68.33% 158 Missing ⚠️
pandapower/converter/jao/from_jao.py 80.47% 58 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2755      +/-   ##
===========================================
- Coverage    71.62%   71.59%   -0.03%     
===========================================
  Files          351      352       +1     
  Lines        37174    37797     +623     
===========================================
+ Hits         26626    27062     +436     
- Misses       10548    10735     +187     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@KS-HTK KS-HTK left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Have not looked at all of the code as there is a lot to cover here… But some changes are required.

Comment thread pandapower/converter/jao/from_jao.py Outdated
Comment thread pandapower/converter/jao/from_jao.py Outdated
Comment thread pandapower/converter/jao/from_jao.py Outdated
Comment thread pandapower/converter/jao/from_jao.py Outdated
@lezneew
lezneew requested a review from KS-HTK November 5, 2025 15:44
Comment thread pandapower/converter/jao/from_jao.py Outdated
Comment thread pandapower/converter/jao/from_jao.py Outdated
------
KeyError
When primary/secondary voltage columns cannot be located via fuzzy matching.
"""

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why was a Documentation removed without replacement?

Comment thread pandapower/converter/jao/from_jao.py
Comment thread pandapower/converter/jao/utils.py Outdated
Comment thread pandapower/converter/jao/utils.py Outdated
def multi_str_repl(st: str, repl: list[tuple]) -> str:
for (old, new) in repl:
st = st.replace(old, new)
return st No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

missing newline at end

@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2025

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

KS-HTK
KS-HTK previously approved these changes Dec 5, 2025
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

💡 Need a hand with PR review? Try Gitar by Sonar!

@KS-HTK KS-HTK left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please also review the Sonar Cloud warnings shown.

@@ -1 +1,7 @@
from .from_jao import from_jao No newline at end of file
# -*- coding: utf-8 -*-

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove this line, as it is only required for non utf-8 or python < 3. In python 3 file encoding is utf-8 by default.

(same for other files in this pr)

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