honeybee-openstudio 2.28.5 → 2.28.9

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: ad5296dcafd3fc2be5c3dd7262a6486cc032cc343e8f9096928ba1a8a2d44e31
4
- data.tar.gz: c59e93091733132e6e6a3e285318a216f0908a78666ec9ae0d93e89eab0e301f
3
+ metadata.gz: d771575766d7baebe94c000fb689d5fa4db098570db2f9452f0325430ddcdf25
4
+ data.tar.gz: 9b1bda106e3fa632125679f50b2f16fcc7dba147a803ef47738b99b5b479b1f6
5
5
  SHA512:
6
- metadata.gz: 1244240f77dc03a0806835535e7fd9f5f0c2e75753b52cdafcdd8ca73e8affec5c78d3bb281d33ace2c0cada3ebab33e56772b28b0209aaddc2ca9321dafd145
7
- data.tar.gz: 846365ff7d278a183d8c91b401d65ab2a81112b55c5b1bd01f4799b37cca2e1985f633635a05894df015fc6364a99f57c3137a7182928da7ace34ce27ed8e1e8
6
+ metadata.gz: 50d219df29d72477635e1e6833b3ce15b039cb1bd72436a692f7276f74d78610febcd73eb3ef6f6e9cc00650bdeac2da3226bb176d0d393ef3d1090f44451f46
7
+ data.tar.gz: 96f1e2544622855240706f10c865ced7b3585a5df17b67d6437a5f15d11aace7f9f4728a8dbde6e8977919e5046e1ed448b4a9af8537ed13fb965eb9c792691b
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'honeybee-openstudio'
7
- spec.version = '2.28.5'
7
+ spec.version = '2.28.9'
8
8
  spec.authors = ['Tanushree Charan', 'Dan Macumber', 'Chris Mackey', 'Mostapha Sadeghipour Roudsari']
9
9
  spec.email = ['tanushree.charan@nrel.gov', 'chris@ladybug.tools']
10
10
 
@@ -135,7 +135,7 @@ module Honeybee
135
135
  hash[:construction_sets] = constructionsets_from_model(openstudio_model)
136
136
  hash[:schedule_type_limits] = schedtypelimits_from_model(openstudio_model)
137
137
  hash[:schedules] = scheduleruleset_from_model(openstudio_model)
138
- hash[:schedules] = schedulefixedinterval_from_model(openstudio_model)
138
+ hash[:schedules].push(*schedulefixedinterval_from_model(openstudio_model))
139
139
 
140
140
  hash
141
141
  end
@@ -76,12 +76,13 @@ module Honeybee
76
76
  # create the space and thermal zone
77
77
  os_space = OpenStudio::Model::Space.new(openstudio_model)
78
78
  os_space.setName(@hash[:identifier] + '_Space')
79
- unless @hash[:display_name].nil?
80
- os_space.setDisplayName(@hash[:display_name])
81
- end
82
79
  os_thermal_zone = OpenStudio::Model::ThermalZone.new(openstudio_model)
83
80
  os_thermal_zone.setName(@hash[:identifier])
84
81
  os_space.setThermalZone(os_thermal_zone)
82
+ unless @hash[:display_name].nil?
83
+ os_space.setDisplayName(@hash[:display_name])
84
+ os_thermal_zone.setDisplayName(@hash[:display_name])
85
+ end
85
86
 
86
87
  # assign the programtype
87
88
  if @hash[:properties][:energy][:program_type]
@@ -226,8 +227,14 @@ module Honeybee
226
227
  else
227
228
  flow_sch_id = 'Always On'
228
229
  end
229
- adj_zone_id = face[:boundary_condition][:boundary_condition_objects][-1]
230
- $air_mxing_array << [os_thermal_zone, flow_rate, flow_sch_id, adj_zone_id]
230
+ begin
231
+ adj_zone_id = face[:boundary_condition][:boundary_condition_objects][-1]
232
+ rescue Exception
233
+ msg = 'ERROR: Air Boundary Faces must be adjacent to a neighboring Room and have a Surface boundary condition.'
234
+ puts msg
235
+ else
236
+ $air_mxing_array << [os_thermal_zone, flow_rate, flow_sch_id, adj_zone_id]
237
+ end
231
238
  end
232
239
  end
233
240
 
@@ -137,6 +137,7 @@ module Honeybee
137
137
  os_sizing_par.setCoolingSizingFactor(siz_defaults[:cooling_factor][:default])
138
138
 
139
139
  # override any SizingParameter defaults with lodaded JSON
140
+ db_temps = []
140
141
  if @hash[:sizing_parameter]
141
142
  if @hash[:sizing_parameter][:heating_factor]
142
143
  os_sizing_par.setHeatingSizingFactor(@hash[:sizing_parameter][:heating_factor])
@@ -145,7 +146,6 @@ module Honeybee
145
146
  os_sizing_par.setCoolingSizingFactor(@hash[:sizing_parameter][:cooling_factor])
146
147
  end
147
148
  # set any design days
148
- db_temps = []
149
149
  if @hash[:sizing_parameter][:design_days]
150
150
  @hash[:sizing_parameter][:design_days].each do |des_day|
151
151
  des_day_object = DesignDay.new(des_day)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeybee-openstudio
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.28.5
4
+ version: 2.28.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanushree Charan
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2022-01-02 00:00:00.000000000 Z
14
+ date: 2022-01-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler