Fix issue 1287 bug in subcritical powerplant report method#1720
Conversation
the change tags components that exist in the stream, e.g. for flue-gas streams, it tags N2, O2, NO, etc.; for water/steam streams, it only tags H2O, as the IAPWS95 property package only contains water.
removed duplicate pressure tag; removed dividend by 1000 for hmass and pressure as their unit are in J/kg and Pa, respectively
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1720 +/- ##
==========================================
+ Coverage 73.67% 73.73% +0.05%
==========================================
Files 398 398
Lines 65102 65095 -7
Branches 10951 10954 +3
==========================================
+ Hits 47963 47995 +32
+ Misses 14632 14592 -40
- Partials 2507 2508 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@Lingyan90, can you get to adding tests before the February release? |
The original testing code didn't cover the info from line 2211 to 2238. The exiting testing code is neat and concise. My changes from line 2211 to line 2224 are mainly correct the unit shown in plot |
When we fix issues that were not covered by our current tests, we like to write new tests to verify that the functionality does not break in the future. That way we can increase the overall test coverage of the repository. |
modified the subcritical_power_plant.py with healer function for tags, tag formats, and tag_group to support a cleaner and simpler tags, tag formats, and tag_group test in the test file.
…hod' of https://github.com/Lingyan90/idaes-pse-lyd into fix-issue_1287-bug-in-subcritical-powerplant-report-method
|
@Lingyan90 & @dallan-keylogic: does this completely address (meaning close) #1287 ? |
The issue #1287 also mentioned another error (Solver ipopt did not exit normally) that didn't show up in my local machine. Unless anyone see this error in their testing, this current PR completely address #1287. |
Fixes
Fix training issue: bug in subcritical powerplant report method #1287.
Also updated the tags units to remove duplicate units in output
plant_pdf_results.svg.Summary/Motivation:
Reproduced the KeyError issue in local machine. The second error regarding solver "IPOPT" was not observed when testing in local machine. This PR helps resolve the KeyError mentioned in the issue.
Changes proposed in this PR:
plant_pdf_results.svg./1000.Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: