Fix Tabular Annual Average Values with Unit Conversion#11410
Merged
Fix Tabular Annual Average Values with Unit Conversion#11410
Conversation
Collaborator
Author
mitchute
commented
Feb 3, 2026
|
|
||
| [](https://github.com/NatLabRockies/EnergyPlus/actions/workflows/test_code_integrity.yml) | ||
| [](https://github.com/NatLabRockies/EnergyPlus/actions/workflows/build_documentation.yml) | ||
| [](https://github.com/NatLabRockies/EnergyPlus/actions/workflows/test_code_integrity.yml) |
Collaborator
Author
There was a problem hiding this comment.
Unrelated. Pinning the README badges to the develop branch.
Comment on lines
+7233
to
+7238
| if (ort->MonthlyColumns(curCol).duration(lMonth) > 0) { | ||
| sumVal += ((ort->MonthlyColumns(curCol).reslt(lMonth) / ort->MonthlyColumns(curCol).duration(lMonth) * | ||
| curConversionFactor) + | ||
| state.dataOutRptTab->curConversionOffset) * | ||
| ort->MonthlyColumns(curCol).duration(lMonth); | ||
| } |
Collaborator
Author
There was a problem hiding this comment.
We have to divide reslt(lMonth) by the monthly duration, convert the units, then multiply back in the monthly duration so the annual average can be calculated later.
Collaborator
Author
|
No diffs are shown here because CI only runs design day simulations. Running regressions without forcing DD should show diffs on PurchAirTables, PurchAirTables_wAnnual, and _SmallOffice_Dulles test files. |
Collaborator
Collaborator
Author
|
The averages are weighted by the duration of each month. If you do that, I think you'll see it all line right up. |
Collaborator
|
I replaced the figure above with the weighted average at bottom right. Right on the money. |
rraustad
approved these changes
Feb 9, 2026
Collaborator
Author
|
Thanks @rraustad. Merging. |
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
Pull Request Author
Reviewer