-
Notifications
You must be signed in to change notification settings - Fork 394
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 EPW parsing bug #9216
Fix EPW parsing bug #9216
Conversation
Looking at 84af30e from #8834, apparently
|
I will check and wake CI back up, but otherwise this fix looks fine. I think it would be good for us to add some form of test for this change. Maybe just add a new weather file that specifically has this header variation and use it in a normal integration test. Anything to get E+ to read this variation of header would suffice. I'll think about adding that in unless you want me to hold off for any reason, @mbadams5. Thanks for this fix though. |
@mjwitte, No the issue stems from the conversion from Line being a |
@Myoldmopar I just added a new integration test with a weather file that shows the issue in current develop and is fixed with this branch. |
testfiles/1ZoneUncontrolled_9161.idf
Outdated
@@ -0,0 +1,461 @@ | |||
!-Generator IDFEditor 1.34 |
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.
As-is, this will result in this file showing up in installer packages. It can be excluded by prefixing an underscore on the file name, or explicitly listing it in the exclude patterns in cmake/Install.cmake
.
Looking forward, if we wanted to use the same example file but for multiple weather files, we could add a new argument to the add_simulation_test
function that would add a suffix to the ctest entry to make it unique. That's obviously too much for this little PR, but could be done pretty easily.
For now, unless there is a reason not to, I'll plan on adding an underscore to the filename and we'll wrap this up.
Thanks for adding this test @mbadams5
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.
@Myoldmopar, sure that is fine to just add the underscore and move on for this PR. I figured it would add it to the installer but I forgot how to avoid that. The additional argument on the add_simulation_test
would be good since I tried to do a duplicate test at first.
Pushed the rename up. I won't wait on the full CI suite to run, but I'll let a few custom check things run before merging. |
That's enough CI for me, this is great. Thanks @mbadams5 ! |
Pull request overview
Fixes #9161
This was either a copy and paste error or just an error when updating parts of the old code to the newer parsing approach.
This wasn't caught previously because the E+ repo does not have any EPW files with fewer values in the columns than the maximum and thus there are no defaults used during parsing.
NOTE: ENHANCEMENTS MUST FOLLOW A SUBMISSION PROCESS INCLUDING A FEATURE PROPOSAL AND DESIGN DOCUMENT PRIOR TO SUBMITTING CODE
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.