-
Notifications
You must be signed in to change notification settings - Fork 66
Fixes TBD unit test for good/bad derating cases #2070
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
| if attic | ||
| if boundary == "outdoors" | ||
| assert(TBD.rsi(lc) < 1.0, err_msg) # uninsulated | ||
| assert(TBD.rsi(lc, film) < 1.0, err_msg) # uninsulated |
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.
... more thorough.
| uo = prop.get | ||
| # puts "#{id} : #{uo.round(3)} vs #{(1/TBD.rsi(lc)).round(3)}" | ||
| unless option == 'uprate' | ||
| assert_empty(prop, err_msg) |
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.
(New) AdditionalProperty not yet enabled for simple derating cases.
| lload = activity.liveload | ||
|
|
||
| if cat.respond_to?(:to_s) | ||
| if cat.respond_to?(:to_sym) |
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.
Preferable to check for symbols than stringable objects, then convert to strings.
| case @@data[:category] | ||
| when "commerce" then partition_m2 = floor_m2 / 2 | ||
| when "industry" then partition_m2 = floor_m2 / 4 | ||
| when "recreation" then partition_m2 = floor_m2 / 3 |
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.
A deeper dive may be required to adjust non-modelled partition m2 / floor area m2. Best guesstimate for now.
| # | ||
| # Upon initialization, only the :structure tally is set. It is assumed | ||
| # that structure (and main framing) do not change with NECB U-factor | ||
| # requirements, e.g.: |
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.
Embodied carbon linked to modelled surfaces (e.g. envelope), now calculated elsewhere in BTAP.
|
Merged, thank you Denis. |
In support of branch nrcan_476:
@nicholaspneu : merge with nrcan_476 at your convenience.