honeybee-openstudio 2.6.2 → 2.6.3

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: 58a653751b8089a138bf8801ec4b364cc80ac8b32ea2a92e07baa138b3a800e5
4
- data.tar.gz: fbc8b5a03386731492f61feb8728e45a8658002f6a92ff785b2714d6f24ce9ea
3
+ metadata.gz: 46f958f941dcbcdad96fce63f736bb5ab0e49b13864a3ef086e97b28a4b92bfa
4
+ data.tar.gz: 2e140ea4e6549a7789b7dec00679440e5fb57eb45171a35632f74ad90376e9f4
5
5
  SHA512:
6
- metadata.gz: 95f905265f9aa6c3765dc39cff0e0654b058f66d7e75070b80c52ffeb27c708e7859a9ced7290c6aa2dcbaa6af4df50afd4047a5c54e2fdf723a012e60c9b600
7
- data.tar.gz: 85621370e9d5a0e3a4f120cbde34fc1187791d2c8fb4283d3cfca9272894e1ae2fac73feb03eabd300db282b2e33193acff242625b95fb83e8afa06d155ced32
6
+ metadata.gz: 0f25e4e7fca7015a52f6c17eb68f685655d07f53e9887f6952fe3978e42e48b932c15ef20b1993bda426070906f6e8cd30d41aa582322b99558c62ebd31598ea
7
+ data.tar.gz: 163fa7ddfbc15fedabe33bcc3be61642596068b0c901cb519d034e2749ec24effda71829abcd97ec16d14e495967772ad8d23068d1da66f58c7582d81ae2f35c
@@ -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.6.2'
7
+ spec.version = '2.6.3'
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
 
@@ -55,7 +55,12 @@ module FromHoneybee
55
55
  os_construction = OpenStudio::Model::ConstructionAirBoundary.new(openstudio_model)
56
56
  os_construction.setName(@hash[:identifier])
57
57
  os_construction.setSolarAndDaylightingMethod('GroupedZones')
58
- os_construction.setRadiantExchangeMethod('GroupedZones')
58
+ # REMOVE: Remove the use of IRTSurface once the AFN works with GroupedZone air walls
59
+ if !$use_simple_vent # we're using the AFN!
60
+ os_construction.setRadiantExchangeMethod('IRTSurface')
61
+ else
62
+ os_construction.setRadiantExchangeMethod('GroupedZones')
63
+ end
59
64
  os_construction.setAirExchangeMethod('None')
60
65
 
61
66
  os_construction
@@ -138,7 +138,7 @@ module FromHoneybee
138
138
  openstudio_schedule_rule.setApplyFriday(rule[:apply_friday])
139
139
  openstudio_schedule_rule.setApplySaturday(rule[:apply_saturday])
140
140
  year_description = openstudio_model.getYearDescription
141
- start_date = year_description.makeDate(rule[:start_date][0], rule[:start_date][1])
141
+ start_date = year_description.makeDate(rule[:start_date][0], rule[:start_date][1])
142
142
  end_date = year_description.makeDate(rule[:end_date][0], rule[:end_date][1])
143
143
  openstudio_schedule_rule.setStartDate(start_date)
144
144
  openstudio_schedule_rule.setEndDate(end_date)
@@ -288,7 +288,18 @@ module FromHoneybee
288
288
  @hash[:run_period][:daylight_saving_time][:end_date][1])
289
289
  end
290
290
 
291
- # TODO: set the holidays once they are available in OpenStudio SDK
291
+ # Set the holidays
292
+ if @hash[:run_period][:holidays]
293
+ @hash[:run_period][:holidays].each do |hol|
294
+ begin
295
+ os_hol = OpenStudio::Model::RunPeriodControlSpecialDays.new(
296
+ OpenStudio::MonthOfYear.new(hol[0]), hol[1], @openstudio_model)
297
+ os_hol.setDuration(1)
298
+ os_hol.setSpecialDayType('Holiday')
299
+ rescue NoMethodError # REMOVE: Once the upgrade to OpenStudio 3.0 is official
300
+ end
301
+ end
302
+ end
292
303
  end
293
304
 
294
305
  # set the simulation timestep
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.6.2
4
+ version: 2.6.3
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: 2020-09-02 00:00:00.000000000 Z
14
+ date: 2020-09-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler