Fix #745 - Use the 'Year' field from Sql file#3453
Fix #745 - Use the 'Year' field from Sql file#3453macumber merged 7 commits intoNatLabRockies:developfrom
Conversation
macumber
left a comment
There was a problem hiding this comment.
I feel like this functionality cannot have too many tests. Specifically, I am concerned that the year in the OpenStudio Model (assumed or real) is correctly translated to E+ and comes through in the SQL and is read correctly into the timeseries.
Can you create a test (probably in resources) that creates a very minimal model and runs for the following periods:
- 1/1/2017-12/31/2017 (non leap year)
- 1/1/2016-12/31/2016 (leap year)
- 2/1/2016-2/29/2016 (leap year, partial)
- 2/29/2016-3/10/2016 (leap year, partial)
- 2/10/2016-3/10/2016 (leap year, partial)
- 2/10/2016-2/9/2017 (leap year)
- 2/10/2017-2/9/2018 (non leap year)
For each run period we should check that the timeseries come out with the correct start and end dates (including year) as well as correct number of reports.
|
Wouldn't hurt to include daylighting reports or any other timeseries data and check that those are reported correctly too. |
Daylight maps don't have the year field in E+ SQL yet (cf issue NatLabRockies/EnergyPlus#7225 and PR I opened to add it NatLabRockies/EnergyPlus#7235) |
|
Added tests in #69. All 8 pass with this branch, versus only 1 with 2.7.1. There's one thing that could be problematic for us actually: currently if you specify a leap year, say 2012, run period, if you pass a weather file that doesn't include Feb 29, E+ will only get you 365 days of data (and no warning in eplusout.err). When reading the time series back, you'd get a Feb 31 and no December 31 which is confusing. Here is what actually happens in this case when I request an Hourly variable for 2012, but specify a TMY3 file. I do get 365 days instead of 366, and I have a 29th of Feb, but no 31 Dec. |
|
Cool thanks for the tests @jmarrec, seems like the leap year / epw issue should be filed with the EnergyPlus team. And it looks like it already does NatLabRockies/EnergyPlus#7240 |
Fix #745 - Use the 'Year' field from Sql file
Fix https://github.com/NREL/OpenStudio-measures/issues/138