-
Notifications
You must be signed in to change notification settings - Fork 421
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
Fix #6738 - Source Energy End Use Components Per Conditioned Floor Area and Per Total Floor Area the same #7428
Fix #6738 - Source Energy End Use Components Per Conditioned Floor Area and Per Total Floor Area the same #7428
Conversation
May of the diffs have failed. Does this fix rearrange tables or headings or? |
@mjwitte this fix changes the values of one coumn in one table (source energy end use / component table, the per total area column used to be calculated the building conditioned floor area). No headings or change in order of tables are expected. This table is part of AllSummary report though, so you can expect diffs Strange also that the CI test failures mention a unicodedecodeError, I'll check tomorrow, it seems there's a non-breaking space lurking somewhere. |
I found the "issue", it's indeed the non breaking space that is used in the HTML report to produce the "empty" row in the table below (where diff are expected) that's not handled correctly by the EnergyPlusRegressionTool. I opened a PR on NREL/EnergyPlusRegressionTool#37 |
@mjwitte Ok Tests are all clean with the regression tool fix |
tableBody(iResource, jEndUse) = RealToStr(useVal(iResource, jEndUse) / convBldgCondFloorArea, 2); | ||
{ | ||
tableBody = ""; | ||
Real64 convBldgGrossFloorArea = buildingGrossFloorArea / areaConversionFactor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, here's the difference. Using buildingGrossFloorArea instead of buildingConditionedFloorArea. 👍
Real64 return_val = execAndReturnFirstDouble(query); | ||
|
||
// Add informative message if failed | ||
EXPECT_NEAR(expectedValue, return_val, 0.01) << "Failed for TableName=" << tableName << "; RowName=" << rowName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very helpful
" AND RowName = '" + rowName + "'" + | ||
" AND ColumnName = '" + columnName + "'"); | ||
|
||
Real64 return_val = execAndReturnFirstDouble(query); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
Pulled this branch up to the latest develop and rebuilt. With latest develop branch I can replicate the duplicate values in the two tables using the defect file and weather file. With this branch I see different values in the two tables. CI is very happy. This is good to go in. Thanks @jmarrec. |
Pull request overview
Fix #6738 - Source Energy End Use Components Per Conditioned Floor Area and Per Total Floor Area the same.
I limited the scope of the blocks of code for Per Conditioned Area versus Per Total Area to avoid running into this kind of problems.
Added unit test.
Work Checklist
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Review Checklist
This will not be exhaustively relevant to every PR.