openstudio-standards 0.7.0.rc1 → 0.7.1

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: 748c3d2973b4e481be8c66360823ad0c2498a3ac70225379d70afb8fcb6df529
4
+ data.tar.gz: 348ed8194710292232687d91f920c519611d41ca845a30928f6cf3fd3767e711
5
5
  SHA512:
6
- metadata.gz: f9d215a5a68e49b38a53a8efc775b62e7dc990a249222c49d0bc804b66e36c817066567b2c573fce2d86dd93f935c8b6ae27bc49ed48cd3540e8cba12ed6ec4b
7
- data.tar.gz: 634968bd824fe7e1a20e5566ecc2e9b59457c4dc15b3b544b4954f9a19987a64b6d7a63c67b9ee7a291c8c7aa4a8f00ef35266f649777db6c132a26ab23b7ce6
6
+ metadata.gz: aaad2a85809fcb0eace0bb4ba30cbd2f31c1234d36818084e85f85f7700469f2547a56122378d6e74f6aedf16d342e57dd757341abf731b920be994d6d95767b
7
+ data.tar.gz: 926f9cb66ecf85fdaa4954f2b2a0e9674502e591180ea169206bff92ea27464a0fbab6351a5136fbac1c64e3c4c9dc637273b3645b70b07e17979845d3a6290a
@@ -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.1'.freeze
17
17
  end
@@ -202,7 +202,7 @@ module OpenstudioStandards
202
202
  stat_string = load_resource_relative("../../../data/weather/#{weather_file_name.gsub('.epw', '.stat')}")
203
203
 
204
204
  # extract to local weather dir
205
- weather_dir = File.expand_path(File.join(__dir__, 'extracted_files/weather/'))
205
+ weather_dir = File.expand_path(File.join(Dir.pwd, 'extracted_files/weather/'))
206
206
  OpenStudio.logFree(OpenStudio::Info, 'openstudio.standards.Weather.information', "Extracting weather files from OpenStudio CLI to #{weather_dir}")
207
207
  FileUtils.mkdir_p(weather_dir)
208
208
 
@@ -210,15 +210,15 @@ module OpenstudioStandards
210
210
  if path_length > 260
211
211
  OpenStudio.logFree(OpenStudio::Warn, 'openstudio.standards.Weather.information', "Weather file path length #{path_length} is >260 characters and may cause issues in Windows environments.")
212
212
  end
213
- File.open("#{weather_dir}/#{weather_file_name}", 'wb').each do |f|
213
+ File.open("#{weather_dir}/#{weather_file_name}", 'wb') do |f|
214
214
  f << epw_string
215
215
  f.flush
216
216
  end
217
- File.open("#{weather_dir}/#{weather_file_name.gsub('.epw', '.ddy')}", 'wb').each do |f|
217
+ File.open("#{weather_dir}/#{weather_file_name.gsub('.epw', '.ddy')}", 'wb') do |f|
218
218
  f << ddy_string
219
219
  f.flush
220
220
  end
221
- File.open("#{weather_dir}/#{weather_file_name.gsub('.epw', '.stat')}", 'wb').each do |f|
221
+ File.open("#{weather_dir}/#{weather_file_name.gsub('.epw', '.stat')}", 'wb') do |f|
222
222
  f << stat_string
223
223
  f.flush
224
224
  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.1
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-12-13 00:00:00.000000000 Z
43
43
  dependencies:
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: bundler
@@ -598,7 +598,7 @@ files:
598
598
  - data/geometry/DOERefWarehouse.json
599
599
  - data/geometry/DOERefWarehouse.osm
600
600
  - data/inventory/thermal_bridging.csv
601
- - data/standards/OpenStudio_Standards-ashrae_90_1.xlsx
601
+ - data/standards/OpenStudio_Standards-ashrae_90_1-ALL-comstock(space_types).xlsx
602
602
  - data/standards/exclude_list.csv
603
603
  - data/standards/export_OpenStudio_libraries.rb
604
604
  - data/standards/manage_OpenStudio_Standards.rb