-
Notifications
You must be signed in to change notification settings - Fork 15
Fix #5355 - E+ 25.1.0: Wrap OutputControl:ResilienceSummaries #216
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
Conversation
| ############################################################################### | ||
| # OUTPUTCONTROL:RESILIENCESUMMARIES # | ||
| ############################################################################### | ||
| if openstudio.VersionString(openstudio.openStudioVersion()) > openstudio.VersionString("3.9.0"): | ||
| output_table.addSummaryReport("ThermalResilienceSummary") | ||
| output_rs = model.getOutputControlResilienceSummaries() | ||
| output_rs.setHeatIndexAlgorithm("Extended") # Default is 'Simplified' | ||
|
|
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.
python version.
| ############################################################################### | ||
| # OUTPUTCONTROL:RESILIENCESUMMARIES # | ||
| ############################################################################### | ||
| if Gem::Version.new(OpenStudio.openStudioVersion) > Gem::Version.new('3.9.0') | ||
| output_table.addSummaryReport('ThermalResilienceSummary') | ||
| output_rs = model.getOutputControlResilienceSummaries | ||
| output_rs.setHeatIndexAlgorithm('Extended') # Default is 'Simplified' | ||
| end | ||
|
|
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.
Ruby one.
a1c2f7c to
8c1445c
Compare
| ############################################################################### | ||
| # OUTPUTCONTROL:RESILIENCESUMMARIES # | ||
| ############################################################################### | ||
| if openstudio.VersionString(openstudio.openStudioVersion()) > openstudio.VersionString("3.9.0"): |
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 is added to an existing test, so we need the version comparison?
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.
yes. I don't have to have 3 new tests just for this dumb object, so added to an existing one.
| if openstudio.VersionString(openstudio.openStudioVersion()) > openstudio.VersionString("3.9.0"): | ||
| output_table.addSummaryReport("ThermalResilienceSummary") | ||
| output_rs = model.getOutputControlResilienceSummaries() | ||
| output_rs.setHeatIndexAlgorithm("Extended") # Default is 'Simplified' |
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.
Does "Simplified" give something "new" in the summary report, or is that just the option to maintain the old behavior?
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.
Simplified gives the same as not having the object at all in your IDF. (= old)
Pull request overview
Link to the Ubuntu 22.04 .deb installer to use for CI Testing. If not set, it will default to latest official release.
[OpenStudio Installer]: http://openstudio-ci-builds.s3-website-us-west-2.amazonaws.com/PR-5365/OpenStudio-3.10.0-alpha%2B51228c2c9b-Ubuntu-22.04-x86_64.deb
This Pull Request is concerning:
NewTest: a new test for a new model API class,Case 1: New test for a new model API class
Work Checklist
The following has been checked to ensure compliance with the guidelines:
autosize_hvac.rbto ensure the autosizedXXX values methods do workReview Checklist
# TODOadded tomodel_tests.rbout.oswhave been committedautosize_hvacas appropriateNewTest,TestFix,NewTestForExisting,OtherNewTest: addPendingOSMorAddedOSM