Skip to content

Minor fixes, typos#30

Merged
brgix merged 2 commits intodevelopfrom
fixes
Apr 22, 2026
Merged

Minor fixes, typos#30
brgix merged 2 commits intodevelopfrom
fixes

Conversation

@brgix
Copy link
Copy Markdown
Member

@brgix brgix commented Apr 21, 2026

Fixes typos and other minor issues, identified while updating pyOSut.

No meaningful change in results.

@brgix brgix self-assigned this Apr 21, 2026
@brgix brgix added the bug Something isn't working label Apr 21, 2026
Comment thread lib/osut/utils.rb

unless mt.setThermalResistance(r)
return invalid("Failed #{id}: RSi#{r.round(2)}", mth)
return invalid("Failed #{id}: RSi#{r.round(2)}", mth, 0, DBG, 0.0)
Copy link
Copy Markdown
Member Author

@brgix brgix Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method filmResistances() should always return a real number - not the OSlg default nil.

Comment thread spec/osut_tests_spec.rb

r1 = OpenStudio::Model::PlanarSurface.stillAirFilmResistance(tilt) * 2
r2 = surface.filmResistance
r2 = adjacent.filmResistance
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better test.

@brgix brgix merged commit 537c0de into develop Apr 22, 2026
7 checks passed
@brgix brgix deleted the fixes branch April 22, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant