Correction of Unit Conversion Error for Air Flow per Power Output in IP Unit Table Reports#11154
Merged
Myoldmopar merged 2 commits intodevelopfrom Sep 4, 2025
Merged
Conversation
It was noted by a user that two of the conversions in the output reports were using the wrong factor. This simple fix corrects that issue.
In testing the fix for this defect, it was discovered that two unit tests related to the output report tables were actually not doing anything because the unit conversion arrays were not set-up. Fixing that, causes those two unit tests to fail as anticipated because the unit tests were still using the improper conversion factor for one particular output. After fixing the conversion in the unit test to match the actual routine in E+, the unit tests are now working again. So, in effect, these unit tests were actually not doing anything before and didn't fail because all of the unit conversions were coming back as 1.
JasonGlazer
approved these changes
Aug 19, 2025
Myoldmopar
approved these changes
Sep 4, 2025
Member
|
Happy here, thanks @RKStrand, and @JasonGlazer for approving. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request overview
Description of the purpose of this PR
In the output report tables, the values for air flow per power were not being converted correctly. There was an additional "per area" term that was included so that the conversion was air flow per area per power rather than the correct air flow per power. This was corrected and any output table that includes this value will change (correctly reported now whereas before the value in IP units was incorrect). Also, while testing this fix, it was noticed that the unit test for these output reports had a bug in it where the conversion factors were not being set up during the unit test. As a result, all of the conversion factors were coming back as 1.0 and the unit tests weren't actually doing anything. So, rather than a new unit test, this work includes a correction to those existing unit tests as well as corrections that mirror the actual fix to the issue raised in the defect.
Pull Request Author
Reviewer