openstudio-standards 0.7.0.rc1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60c7a440150d4c606e62bed10705328542b6e562b54e710e09c2bdde8b4f2fae
4
- data.tar.gz: 6441828f3ff0d2d21287e2b94e9a825d45002355cee15d76cc96adfa14131113
3
+ metadata.gz: f9291620f66d76ddfd726191917cc813d14a29fb6b9ee9de5b1b5670abfd5620
4
+ data.tar.gz: 6a0e1a0a9d6fc389a68667563e375a923fe6484a4685aac1940eeb5c10763f24
5
5
  SHA512:
6
- metadata.gz: f9d215a5a68e49b38a53a8efc775b62e7dc990a249222c49d0bc804b66e36c817066567b2c573fce2d86dd93f935c8b6ae27bc49ed48cd3540e8cba12ed6ec4b
7
- data.tar.gz: 634968bd824fe7e1a20e5566ecc2e9b59457c4dc15b3b544b4954f9a19987a64b6d7a63c67b9ee7a291c8c7aa4a8f00ef35266f649777db6c132a26ab23b7ce6
6
+ metadata.gz: 618793b8d2e6bb43e09827ad1371c26667fcc1b981bb058c1b3981b2781dd489ba048a8aa419e1a6289336bb6fac56c2a745c5f6814f6929f3c095bd9eabf5de
7
+ data.tar.gz: dd545de9b41a33bb218e23799d86deb8c2426cfb6792e92dee496d0b3b32c211fe8097b2355fa5151e9de3b07dafb992b93f3c59296665d045e96c1957bd047c
@@ -411,7 +411,13 @@ module OpenstudioStandards
411
411
  custom_cor_val = width * core_ratio_adj
412
412
  custom_perim_val = (width - custom_cor_val) / 2.0
413
413
  end
414
- actual_perim = custom_perim_val
414
+ # use perimeter zone depth if the custom perimeter value is within 1 milimeter
415
+ if (custom_perim_val - perimeter_zone_depth).abs < 0.001
416
+ actual_perim = perimeter_zone_depth
417
+ else
418
+ actual_perim = custom_perim_val
419
+ end
420
+
415
421
  double_loaded_corridor = true
416
422
  else
417
423
  actual_perim = perimeter_zone_depth
@@ -365,7 +365,7 @@ module OpenstudioStandards
365
365
  else
366
366
  num_timesteps = model.getTimestep.numberOfTimestepsPerHour
367
367
  day_timeseries = schedule_day.timeSeries.values.to_a
368
- schedule_values = day_timeseries.each_slice(num_timesteps).map { |slice| slice.sum / slice.size.to_f }
368
+ schedule_values = day_timeseries.each_slice(num_timesteps).map { |slice| (slice.sum / slice.size.to_f).round(10) }
369
369
  end
370
370
 
371
371
  unless schedule_values.size == 24
@@ -13,5 +13,5 @@ module OpenstudioStandards
13
13
  end
14
14
  return 'git-not-found-on-this-system'
15
15
  end
16
- VERSION = '0.7.0.rc1'.freeze
16
+ VERSION = '0.7.0'.freeze
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-standards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.rc1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Adams
@@ -39,7 +39,7 @@ authors:
39
39
  autorequire:
40
40
  bindir: bin
41
41
  cert_chain: []
42
- date: 2024-10-28 00:00:00.000000000 Z
42
+ date: 2024-11-05 00:00:00.000000000 Z
43
43
  dependencies:
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: bundler