Skip to content

Conversation

@jmarrec
Copy link
Contributor

@jmarrec jmarrec commented Jun 10, 2025

NREL/OpenStudio#1697

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-5426/OpenStudio-3.10.0-rc1%2B1191f7e597-Ubuntu-22.04-x86_64.deb

This Pull Request is concerning:

  • Case 1 - NewTest: a new test for a new model API class,

Technically it's not a new class, but the former was very broken and useless, so treating as a new one


Case 1: New test for a new model API class

This pull request is in relation with the Pull Request:

It will specifically test for the following classes:

  • ThermochromicGlazing

Additionally, it will explicitly test for StandardGlazing and MaterialPropertyGlazingSpectralData which were NOT tested for before

Work Checklist

The following has been checked to ensure compliance with the guidelines:

  • Tests pass either:

    • with official OpenStudio release (include version):

      • A matching OSM test has been added from the successful run of the Ruby one with the official OpenStudio release
      • The label AddedOSM has been added to this PR
      • All new out.osw have been committed
    • with current develop (incude SHA):

      • The label PendingOSM has been added to this PR
      • A matching OSM test has not yet been added because the official release is pending, but model_tests.rb has a TODO.
      • # TODO: To be added in the next official release after: 3.10.0
        # def test_thermochromic_windows_osm
        # result = sim_test('thermochromic_windows.osm')
        # end
      • No out.osw have been committed as they need to be run with an official OpenStudio version
  • Ruby test is stable: when run multiple times on the same machine, it produces the same total site kBTU.
    Please paste the heatmap png generated after running the following commands:

    • I ensured that I assign systems/loads/etc in a repeatable manner (eg: if I assign stuff to thermalZones, I do model.getThermalZones.sort_by{|z| z.name.to_s}.each do ... so I am sure I put the same ZoneHVAC systems to the same zones regardless of their order)
    • I tested stability using process_results.py (see python process_results.py --help for usage).
  • Object has been added to autosize_hvac.rb to ensure the autosizedXXX values methods do work: N/A


Review Checklist

  • Code style (indentation, variable names, strip trailing spaces)
  • Functional code review (it has to work!)
  • Matching OSM test has been added or # TODO added to model_tests.rb
  • Appropriate out.osw have been committed
  • Test is stable
  • Object is tested in autosize_hvac as appropriate
  • The appropriate labels have been added to this PR:
    • One of: NewTest, TestFix, NewTestForExisting, Other
    • If NewTest: add PendingOSM or AddedOSM

@jmarrec jmarrec self-assigned this Jun 10, 2025
@jmarrec jmarrec added NewTest PR type: a new test for a new model API class PendingOSM A matching OSM test has yet to be added with the next official OpenStudio Release labels Jun 10, 2025
@jmarrec jmarrec requested a review from joseph-robertson June 10, 2025 16:48
@jmarrec jmarrec force-pushed the 1697_Thermochromic branch from 1e9706c to 3ae706a Compare June 11, 2025 08:28
@jmarrec jmarrec force-pushed the 1697_Thermochromic branch from 6f7e3dc to 4fce4de Compare June 11, 2025 08:44
@jmarrec jmarrec merged commit 9d4566e into develop Jun 11, 2025
2 of 3 checks passed
@jmarrec jmarrec deleted the 1697_Thermochromic branch June 11, 2025 08:51
@jmarrec jmarrec added AddedOSM A matching OSM test has been added with an official OpenStudio release and removed PendingOSM A matching OSM test has yet to be added with the next official OpenStudio Release labels Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AddedOSM A matching OSM test has been added with an official OpenStudio release NewTest PR type: a new test for a new model API class

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-wrap Thermochromic window model properly

2 participants