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

Repair StandardLoad parsing from .mat/.raw files #1065

Merged
merged 6 commits into from
Mar 19, 2024

Conversation

HaleyRoss
Copy link
Contributor

Removed if statement from the read_loads!() function that caused StandardLoads being read from .mat and .raw files to be dropped if the constant_active_power and constant_reactive_power arguments were 0.

This is correcting issue #1032

Copy link

codecov bot commented Mar 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.25%. Comparing base (4587ed0) to head (a982911).

❗ Current head a982911 differs from pull request most recent head 4999e39. Consider uploading reports for the commit 4999e39 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1065      +/-   ##
==========================================
+ Coverage   85.18%   85.25%   +0.06%     
==========================================
  Files         170      170              
  Lines        7702     7695       -7     
==========================================
- Hits         6561     6560       -1     
+ Misses       1141     1135       -6     
Flag Coverage Δ
unittests 85.25% <100.00%> (+0.06%) ⬆️

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

Files Coverage Δ
src/parsers/power_models_data.jl 91.04% <100.00%> (-0.03%) ⬇️

... and 1 file with indirect coverage changes

@jd-lara
Copy link
Member

jd-lara commented Mar 4, 2024

@HaleyRoss can you add a test for this please?

@@ -485,7 +483,7 @@ function make_thermal_gen(gen_name::AbstractString, d::Dict, bus::ACBus, sys_mba
thermal_gen = ThermalStandard(;
name = gen_name,
status = Bool(d["gen_status"]),
available = true,
available = Bool(d["gen_status"]),
Copy link
Member

Choose a reason for hiding this comment

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

good catch

@jd-lara jd-lara self-requested a review March 19, 2024 18:54
@jd-lara jd-lara merged commit 5dc3fab into NREL-Sienna:main Mar 19, 2024
8 checks passed
@HaleyRoss HaleyRoss deleted the hr/psse_parsing branch March 19, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants