openstudio-standards 0.7.0.rc1 → 0.7.1
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 +4 -4
- data/data/standards/OpenStudio_Standards-ashrae_90_1-ALL-comstock(space_types).xlsx +0 -0
- data/lib/openstudio-standards/geometry/create.rb +7 -1
- data/lib/openstudio-standards/schedules/information.rb +1 -1
- data/lib/openstudio-standards/version.rb +1 -1
- data/lib/openstudio-standards/weather/information.rb +4 -4
- metadata +3 -3
- data/data/standards/OpenStudio_Standards-ashrae_90_1.xlsx +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 748c3d2973b4e481be8c66360823ad0c2498a3ac70225379d70afb8fcb6df529
|
4
|
+
data.tar.gz: 348ed8194710292232687d91f920c519611d41ca845a30928f6cf3fd3767e711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaad2a85809fcb0eace0bb4ba30cbd2f31c1234d36818084e85f85f7700469f2547a56122378d6e74f6aedf16d342e57dd757341abf731b920be994d6d95767b
|
7
|
+
data.tar.gz: 926f9cb66ecf85fdaa4954f2b2a0e9674502e591180ea169206bff92ea27464a0fbab6351a5136fbac1c64e3c4c9dc637273b3645b70b07e17979845d3a6290a
|
Binary file
|
@@ -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
|
-
|
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
|
@@ -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(
|
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')
|
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')
|
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')
|
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.
|
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-
|
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
|
Binary file
|