-
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 9215 central heat pump schedule #9226
Fix 9215 central heat pump schedule #9226
Conversation
…. Need another piece in the input snippet.
…he curves needs to be added.
Is this still draft or ready to go? |
Set to ready for view. |
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.
The change looks good, and the unit test seems sufficient, but it does need a small tweak. At least the removal of the unused variable, and more preferable just not calling the factory at all, per my comment. Please address that either way and push it up and this should be ready to go. Also, is there a defect file for this?
// call the factory with a valid name to trigger reading inputs | ||
state->dataPlantCentralGSHP->getWrapperInputFlag = true; | ||
|
||
auto compPtr = PlantCentralGSHP::WrapperSpecs::factory(*state, "CHW_LOOP HEATPUMP1"); |
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 compPtr
is unused and throwing a warning from the compiler. I'm guessing you probably don't need to call the PlantComponent wrapper function anyway though, and instead just call the GetWrapperInput
function instead (which the factory probably does anyway...)
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.
Defect file added.
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.
The change is also done now. It calling the "GetWrapperInput()' function directly, with some minor changes in the idf snippet, e.g. added a schedule.
auto compPtr = PlantCentralGSHP::WrapperSpecs::factory(*state, "CHW_LOOP HEATPUMP1"); | ||
|
||
// verify that under this scenario of not finding a schedule match, ScheduleAlwaysOn is the treated default | ||
EXPECT_EQ(state->dataPlantCentralGSHP->Wrapper(1).WrapperComp(1).CHSchedPtr, DataGlobalConstants::ScheduleAlwaysOn); |
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.
Reasonable assertion for the unit test 👍
ShowContinueError( | ||
state, " in the object " + state.dataIPShortCut->cCurrentModuleObject + "= " + state.dataIPShortCut->cAlphaArgs(1)); | ||
ShowContinueError(state, "The Control Schedule is treated as AlwaysOn instead."); | ||
} |
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.
Yeah, this is fine with me.
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 the review! The changes have been pushed, waiting for the ci results.
Windows build failed but unrelated to this, it's fine. Develop has moved a good amount since the last run so I'd want to do at least a local test/regression run before merging, but I think this should still be ready to go in, right? |
@Myoldmopar Yes, it should be good to go. Would you like me to push a commit that merged with most recent develop or you want to do that locally on your PC? |
I pulled develop into the branch locally and am building/testing. If it is all good it'll merge here in a bit. Thanks. |
All tests pass locally with develop pulled in, including regressions which are fully clean. Merging this, thanks @jcyuan2020 |
…chedule Fix 9215 central heat pump schedule
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.