-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix #4543 - E+ 22.1.0: Wrap SetpointManager:SystemNodeReset:Temperature and SetpointManager:SystemNodeReset:Humidity #4619
Conversation
```shell $os_build2/Products/openstudio GenerateClass.rb -c "SetpointManagerSystemNodeResetTemperature" -b "SetpointManager" -i "OS:SetpointManager:SystemNodeReset:Temperature" -s model -o $os_model2/ -p -f -r $os_build2/Products/openstudio GenerateClass.rb -c "SetpointManagerSystemNodeResetHumidity" -b "SetpointManager" -i "OS:SetpointManager:SystemNodeReset:Humidity" -s model -o $os_model2 -p -f -r ```
companion PR: NREL/OpenStudio#4619
The windows build failure has nothing to do with this PR. We need to wipe the build directory again... a process left a csharp wrap file open probably. |
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.
Looks good. I mostly just have a few minor questions/thoughts. The two objects look very similar, so assume that any questions for the first also apply to the second.
src/energyplus/ForwardTranslator/ForwardTranslateSetpointManagerSystemNodeResetHumidity.cpp
Outdated
Show resolved
Hide resolved
src/energyplus/ForwardTranslator/ForwardTranslateSetpointManagerSystemNodeResetHumidity.cpp
Outdated
Show resolved
Hide resolved
@@ -810,6 +810,14 @@ namespace energyplus { | |||
//modelObject = translateSetpointManagerSingleZoneReheat(workspaceObject); | |||
break; | |||
} | |||
case openstudio::IddObjectType::SetpointManager_SystemNodeReset_Humidity: { | |||
//modelObject = translateSetpointManagerSystemNodeResetHumidity(workspaceObject); |
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.
Oh, you are just stubbing these?
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.
Until we invest into the effort of ReverseTranslating Loops (which we don't currently), I must leave it disabled yes
// From E+ 5ZoneSystemNodeReset.idf (22.1.0) | ||
bool ok = setControlVariable("MaximumHumidityRatio"); | ||
OS_ASSERT(ok); | ||
setSetpointatLowReferenceHumidityRatio(0.00924); |
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.
OS_ASSERT(ok) on all of these set methods?
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 I don't think that's needed here. I'm setting positive, non zero, numeric values. That's never going to change. The Choice field could change and I could forget to update the Ctor though.
… a comment (+ update Generator ruby code)
CI Results for daa5369:
|
Pull request overview
Pull Request Author
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.