Skip to content
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

Open
wants to merge 3 commits into
base: 3WTransformer
Choose a base branch
from

Conversation

mcllerena
Copy link

@mcllerena mcllerena commented Dec 17, 2024

Adding missing parameters "VSWHI" (upper_limit), "VSWLO" (lower limit), Bi (admittance increment) & Ni (number of steps), to the function _psse2pm_shunt!.

@@ -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..."
Copy link
Member

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

Copy link
Author

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.

Copy link
Member

@jd-lara jd-lara left a 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

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (3WTransformer@774695e). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff                @@
##             3WTransformer    #1230   +/-   ##
================================================
  Coverage                 ?   84.29%           
================================================
  Files                    ?      181           
  Lines                    ?     8391           
  Branches                 ?        0           
================================================
  Hits                     ?     7073           
  Misses                   ?     1318           
  Partials                 ?        0           
Flag Coverage Δ
unittests 84.29% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

@mcllerena mcllerena requested a review from jd-lara December 23, 2024 20:42
@jd-lara
Copy link
Member

jd-lara commented Dec 26, 2024

@mcllerena you need to run the formatter

Copy link
Member

@jd-lara jd-lara left a 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.

@jd-lara jd-lara self-assigned this Dec 26, 2024
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