-
Notifications
You must be signed in to change notification settings - Fork 392
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 9436 - TIMESTAMP Column in Custom Monthly Report Tables under both peak heating and peak cooling report has a trailing space #9647
Conversation
```shell [ RUN ] SQLiteFixture.OutputReportTabularMonthly_CurlyBraces /home/julien/Software/Others/EnergyPlus/tst/EnergyPlus/unit/OutputReportTabular.unit.cc:10147: Failure Failed Extra space after brace in monthly table for : 'ELECTRICITY:FACILITY {TIMESTAMP} ' [ FAILED ] SQLiteFixture.OutputReportTabularMonthly_CurlyBraces (218 ms) ```
@@ -10132,6 +10132,20 @@ TEST_F(SQLiteFixture, OutputReportTabularMonthly_CurlyBraces) | |||
std::string colHeader = col[0]; | |||
EXPECT_TRUE(false) << "Missing braces in monthly table for : " << colHeader; | |||
} |
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.
We need to add a unit test for this type of thing? I think we've lost the plot on unit tests.
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.
This is great. Although it's technically an output change, it's the right move, and I suspect the primary consumer of this is the one proposing the change. Good to go.
for (auto &col : extraSpaceAfterBracesHeaders) { | ||
std::string colHeader = col[0]; | ||
ADD_FAILURE() << "Extra space after brace in monthly table for : '" << colHeader << "'"; | ||
} |
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.
👍
@@ -7534,7 +7534,7 @@ void WriteMonthlyTables(EnergyPlusData &state) | |||
curConversionFactor *= 3600.0; | |||
} | |||
columnHead(columnRecount - 1) = ort->MonthlyColumns(curCol).varName + curAggString + " [" + curUnits + ']'; | |||
columnHead(columnRecount) = ort->MonthlyColumns(curCol).varName + " {TIMESTAMP} "; |
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.
👍
@@ -100,17 +100,21 @@ The Adaptive Comfort Summary/Report was renamed to match the HTML: | |||
|
|||
See pull request [#9461](https://github.com/NREL/EnergyPlus/pull/9461) for more details. | |||
|
|||
### Output:Table:Monthly and Output:Table:Annual | |||
|
|||
In `Output:Table:Monthly` and `Output:Table:Annual`, variables with an aggregation type such as `Maximum`, `Minimum`, `MaximumDuringHoursShown`, and `MinimumDuringHoursShown` produce an extra `<Variable of Meter Name> {TIMESTAMP}` column that had an extra trailing space in the SQL. That extra trailing space was removed. cf [#9647](https://github.com/NREL/EnergyPlus/pull/9647) |
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.
Thanks for documenting it here.
Builds and tests fine, merging. |
Pull request overview
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.