Skip to content

Conversation

@lezneew
Copy link
Contributor

@lezneew lezneew commented Oct 15, 2025

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

codecov bot commented Oct 15, 2025

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).

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.

Copy link
Collaborator

@KS-HTK KS-HTK left a comment

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.

@lezneew lezneew requested a review from KS-HTK November 5, 2025 15:44
------
KeyError
When primary/secondary voltage columns cannot be located via fuzzy matching.
"""
Copy link
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?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Multiple docstrings were removed. Is there a reason?

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

sonarqubecloud bot commented Dec 4, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

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.

2 participants