Skip to content

Fix crash in TimeBins report due to an incorrect key#4641

Merged
Myoldmopar merged 4 commits intodevelopfrom
84202708-TimeBinsCrash
Feb 5, 2015
Merged

Fix crash in TimeBins report due to an incorrect key#4641
Myoldmopar merged 4 commits intodevelopfrom
84202708-TimeBinsCrash

Conversation

@JasonGlazer
Copy link
Contributor

GitHub #4405, Pivotal #84202708. Got rid of old code that was making reporting the error condition more complex than it needed to be. Changed error message slightly.

…, Pivotal #84202708. Got rid of old code that was making reporting the error condition more complex than it needed to be. Changed error message slightly.
@nrel-bot
Copy link

@JasonGlazer @lgentile it has been 7 days since this pull request was last updated.

2 similar comments
@nrel-bot
Copy link

nrel-bot commented Jan 3, 2015

@JasonGlazer @lgentile it has been 7 days since this pull request was last updated.

@nrel-bot
Copy link

@JasonGlazer @lgentile it has been 7 days since this pull request was last updated.

@JasonGlazer
Copy link
Contributor Author

@Myoldmopar Do I need to do anything else on this? It seems like the Linux CI tests failed because of some network issue not related to my changes.

@JasonGlazer
Copy link
Contributor Author

@Myoldmopar @lgentile @mjwitte I am trying to figure out a simple unit test related to this checkin. Mike had previously suggested a unit test approach that relied on refactoring the getinput routine to separate out the input processing from the getinput and then test the input processing. He provided an example for a unit test he did in:

https://github.com/NREL/EnergyPlus/pull/4590/files

It is a lot of work on code unrelated to the checkin. Does anyone have a simpler approach to adding a unit test?

@Myoldmopar
Copy link
Member

I didn't dig around, but is it possible to extract that section of the IF block into its own function that you call from there and then validate that that block behaves properly? If you pass in as arguments everything that you need to make the decisions, then you won't need to set up anything global. Just call the function and check the output under all possible conditions.

@JasonGlazer
Copy link
Contributor Author

Added a unit test but is not really testing much.

@nrel-bot
Copy link

@JasonGlazer @lgentile it has been 7 days since this pull request was last updated.

@Myoldmopar
Copy link
Member

Yeah, I'm not sure about the preprocessor issues, but CI was having issues a couple weeks ago. I merged develop in and we'll see.

@Myoldmopar Myoldmopar self-assigned this Feb 5, 2015
Myoldmopar added a commit that referenced this pull request Feb 5, 2015
Fixed crash related to TimeBins report with incorrect key.
@Myoldmopar Myoldmopar merged commit 7670db5 into develop Feb 5, 2015
@Myoldmopar Myoldmopar deleted the 84202708-TimeBinsCrash branch February 5, 2015 21:42
Myoldmopar added a commit that referenced this pull request Feb 6, 2015
Add missed unit test from PR #4641, fix new function signature for performance
@Myoldmopar Myoldmopar changed the title Fixed crash related to TimeBins report with incorrect key. Fix crash in TimeBins report due to an incorrect key Mar 7, 2015
@Myoldmopar Myoldmopar added the Defect Includes code to repair a defect in EnergyPlus label Mar 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Defect Includes code to repair a defect in EnergyPlus

3 participants