-
Notifications
You must be signed in to change notification settings - Fork 538
Jao converter #2755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Jao converter #2755
Conversation
# Conflicts: # pandapower/converter/jao/from_jao.py
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
KS-HTK
left a comment
There was a problem hiding this 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.
[CHANGED] refactored code
Refactored Code
… utils functions refactored code removed unused function
pandapower/converter/jao/from_jao.py
Outdated
| ------ | ||
| KeyError | ||
| When primary/secondary voltage columns cannot be located via fuzzy matching. | ||
| """ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing newline at end
|


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