-
Notifications
You must be signed in to change notification settings - Fork 81
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
Parse missing sw shunt data in psse.jl file #1230
base: 3WTransformer
Are you sure you want to change the base?
Conversation
src/parsers/pm_io/psse.jl
Outdated
@@ -344,7 +344,7 @@ for Switched Shunts, as given by the PSS(R)E Fixed and Switched Shunts | |||
specifications. | |||
""" | |||
function _psse2pm_shunt!(pm_data::Dict, pti_data::Dict, import_all::Bool) | |||
@info "Parsing PSS(R)E Shunt data into a PowerModels Dict..." | |||
@info "Parsing PSS(R)E Shunt data into a PowerxModels Dict..." |
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.
This seems to be an undesired change
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.
Sorry, a misstep on the keyboard. I've already fix it.
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.
We need to add a new key to distinguish between fixed and switch shunts too
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 3WTransformer #1230 +/- ##
================================================
Coverage ? 84.29%
================================================
Files ? 181
Lines ? 8391
Branches ? 0
================================================
Hits ? 7073
Misses ? 1318
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. |
@mcllerena you need to run the formatter |
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.
@mcllerena this looks good to me. We need to add a case for testing this code and also add the code to read this data into the SwtichedShunt structure.
Adding missing parameters "VSWHI" (upper_limit), "VSWLO" (lower limit), Bi (admittance increment) & Ni (number of steps), to the function _psse2pm_shunt!.