tbd 3.4.5 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '088489dd7b5163709bef87c140b053593cca33f27fff736a553ec2c734ace460'
4
- data.tar.gz: 0e5a5ed2af0d1d4c9d0b50d625147bd519b5944b923ae12d0ef414d88818c0a9
3
+ metadata.gz: 9d6373dd2c7851862ab62c368f9a08ba66b515028792278249e83cbc4ea82387
4
+ data.tar.gz: a4d02730e467fd836af97a2f4ca68f90c0e7b6aa53aabbbe2e7d5c53cd932e20
5
5
  SHA512:
6
- metadata.gz: 708b50fde62e4990344e51eb46390607ee193338d59e3539c61f80fd53850acfb37dc6659bfe77ef23a3820f1339266fa02425ad719f9f940b948b6564bc6d22
7
- data.tar.gz: 69c846ef8d3663436b726566dfc3b78e44e6a9ba30431d00b724c6c5778150a8e6b950abdbf18af6bf5e8ed0276d0fa008e683f1c6ee3656c2ca6436c0c74af3
6
+ metadata.gz: 1725c5ea9338e03765a5a49fc13b9525802330eecbbd6effdf8bbd71383e695c2ec4f38c536cdbd8b32f12929f216a164e28ddcd656c16937a1a03d1f15b97dc
7
+ data.tar.gz: 34bf72736719a22e7f2d19a6f937d7098417931ec748386615ef7ccb14ebc488e3a905d352c0ef94d0bbf8c7299e62899d4134529288b353cf32c4bd9afa2f0c
@@ -3,8 +3,8 @@
3
3
  <schema_version>3.1</schema_version>
4
4
  <name>tbd_measure</name>
5
5
  <uid>8890787b-8c25-4dc8-8641-b6be1b6c2357</uid>
6
- <version_id>7a2d773a-7a50-4c69-aa1f-93ed796e9ace</version_id>
7
- <version_modified>2025-08-15T13:39:31Z</version_modified>
6
+ <version_id>0e1528a0-a176-4d46-82d9-d2da40c0abd7</version_id>
7
+ <version_modified>2025-09-11T11:27:14Z</version_modified>
8
8
  <xml_checksum>99772807</xml_checksum>
9
9
  <class_name>TBDMeasure</class_name>
10
10
  <display_name>Thermal Bridging and Derating - TBD</display_name>
@@ -499,7 +499,7 @@
499
499
  <filename>geo.rb</filename>
500
500
  <filetype>rb</filetype>
501
501
  <usage_type>resource</usage_type>
502
- <checksum>EF3BA8F7</checksum>
502
+ <checksum>5AB24CFB</checksum>
503
503
  </file>
504
504
  <file>
505
505
  <filename>geometry.rb</filename>
@@ -523,7 +523,7 @@
523
523
  <filename>psi.rb</filename>
524
524
  <filetype>rb</filetype>
525
525
  <usage_type>resource</usage_type>
526
- <checksum>71AED953</checksum>
526
+ <checksum>29905280</checksum>
527
527
  </file>
528
528
  <file>
529
529
  <filename>tbd.rb</filename>
@@ -541,13 +541,13 @@
541
541
  <filename>ua.rb</filename>
542
542
  <filetype>rb</filetype>
543
543
  <usage_type>resource</usage_type>
544
- <checksum>022F6D10</checksum>
544
+ <checksum>0CC24D82</checksum>
545
545
  </file>
546
546
  <file>
547
547
  <filename>utils.rb</filename>
548
548
  <filetype>rb</filetype>
549
549
  <usage_type>resource</usage_type>
550
- <checksum>3CD8019A</checksum>
550
+ <checksum>6940D006</checksum>
551
551
  </file>
552
552
  <file>
553
553
  <filename>version.rb</filename>
@@ -310,23 +310,24 @@ module TBD
310
310
  end
311
311
 
312
312
  unless surface.construction.empty?
313
- construction = surface.construction.get.to_LayeredConstruction
313
+ lc = surface.construction.get.to_LayeredConstruction
314
314
 
315
- unless construction.empty?
316
- construction = construction.get
317
- lyr = insulatingLayer(construction)
318
- lyr[:index] = nil unless lyr[:index].is_a?(Numeric)
319
- lyr[:index] = nil unless lyr[:index] >= 0
320
- lyr[:index] = nil unless lyr[:index] < construction.layers.size
315
+ unless lc.empty?
316
+ lc = lc.get
317
+ lyr = insulatingLayer(lc)
321
318
 
322
- if lyr[:index]
323
- surf[:construction] = construction
319
+ if lyr[:index].is_a?(Integer) && lyr[:index].between?(0, lc.numLayers - 1)
320
+ surf[:construction] = lc
324
321
  # index: ... of layer/material (to derate) within construction
325
322
  # ltype: either :massless (RSi) or :standard (k + d)
326
323
  # r : initial RSi value of the indexed layer to derate
327
324
  surf[:index] = lyr[:index]
328
325
  surf[:ltype] = lyr[:type ]
329
326
  surf[:r ] = lyr[:r ]
327
+ else
328
+ surf[:index] = nil
329
+ surf[:ltype] = nil
330
+ surf[:r ] = 0.0
330
331
  end
331
332
  end
332
333
  end