honeybee-openstudio 2.20.1 → 2.20.5

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: 4581b8df0260d94b22e84cebad71cac1100570a9b60196389668b0e022182aa7
4
- data.tar.gz: 5200ef431d68e562aad00acfde9de49d15b12db4905dd40215c967875916062d
3
+ metadata.gz: d9366738c4b20407224bc1d89aa24c281e7fa1048af90a33f1859cec06103410
4
+ data.tar.gz: 79bf79c2b6b08d35f3265c4078fae99dc411c6e5cc71769c779a9f34152c92c7
5
5
  SHA512:
6
- metadata.gz: e0a19cb160a81ab2d78acef94d2d743527d5bc497a27c6ac1d338d4fe34ce01c18b3cbb43e282f07902e4593acafff1350e4514afe7873633d0906573f101e80
7
- data.tar.gz: ed607ea34c212e78bcea9fbcd0909b86c61072f8b1daa932399cbe94a4d9dc9b09678eda847992a4863c2930472d192352f6a241c0aab94f48dabad940a7f5c2
6
+ metadata.gz: 8a3b29719185b64f18697b8deadc90032b81ae43e11e0bafa434a890d023a46bb80450e042cf78caefa9310b1b8c25baa57a74339595ab70b62e3eb602ebb951
7
+ data.tar.gz: d54a8cf426d90a4d472553bdad1173d605205316b48a04fcd47cf24e1b4aa221d2756ac9e218cac46afc540f90f822232fdac346f8b838215c07984c8147874b
@@ -54,3 +54,19 @@ jobs:
54
54
  uses: dawidd6/action-publish-gem@v1
55
55
  with:
56
56
  api_key: ${{secrets.RUBYGEMS_API_KEY}}
57
+ - name: Update lbt-grasshopper
58
+ if: steps.semantic.outputs.new_release_published == 'true'
59
+ env:
60
+ RELEASE_TAG: ${{ steps.semantic.outputs.new_release_version }}
61
+ DISPATCH_URL: https://api.github.com/repos/ladybug-tools/lbt-grasshopper/dispatches
62
+ DEPS_TOKEN: ${{ secrets.DEPS_UPDATING }}
63
+ run: |
64
+ curl -X POST $DISPATCH_URL \
65
+ -H "Accept: application/vnd.github.everest-preview+json" \
66
+ -d '{
67
+ "event_type": "honeybee_openstudio_gem_release",
68
+ "client_payload": {
69
+ "version" : "'$RELEASE_TAG'"
70
+ }
71
+ }' \
72
+ -u chriswmackey:$DEPS_TOKEN
@@ -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.20.1'
7
+ spec.version = '2.20.5'
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
 
@@ -41,7 +41,9 @@ module Honeybee
41
41
  ASHRAE_2004: '90.1-2004',
42
42
  ASHRAE_2007: '90.1-2007',
43
43
  ASHRAE_2010: '90.1-2010',
44
- ASHRAE_2013: '90.1-2013'
44
+ ASHRAE_2013: '90.1-2013',
45
+ ASHRAE_2016: '90.1-2016',
46
+ ASHRAE_2019: '90.1-2019'
45
47
  }
46
48
 
47
49
  def to_openstudio(openstudio_model, room_ids)
@@ -160,6 +160,30 @@ module Honeybee
160
160
  defaults[:diffuse_visible_reflectance_back][:default])
161
161
  end
162
162
 
163
+ # assign front beam visible transmittance
164
+ if @hash[:beam_visible_transmittance]
165
+ os_blind.setSlatBeamVisibleTransmittance(@hash[:beam_visible_transmittance])
166
+ else
167
+ os_blind.setSlatBeamVisibleTransmittance(
168
+ defaults[:beam_visible_transmittance][:default])
169
+ end
170
+
171
+ # assign front beam visible reflectance
172
+ if @hash[:beam_visible_reflectance]
173
+ os_blind.setFrontSideSlatBeamVisibleReflectance(@hash[:beam_visible_reflectance])
174
+ else
175
+ os_blind.setFrontSideSlatBeamVisibleReflectance(
176
+ defaults[:beam_visible_reflectance][:default])
177
+ end
178
+
179
+ # assign back beam visible reflectance
180
+ if @hash[:beam_visible_reflectance_back]
181
+ os_blind.setBackSideSlatBeamVisibleReflectance(@hash[:beam_visible_reflectance_back])
182
+ else
183
+ os_blind.setBackSideSlatBeamVisibleReflectance(
184
+ defaults[:beam_visible_reflectance_back][:default])
185
+ end
186
+
163
187
  # assign infrared transmittance
164
188
  if @hash[:infrared_transmittance]
165
189
  os_blind.setSlatInfraredHemisphericalTransmittance(@hash[:infrared_transmittance])
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.20.1
4
+ version: 2.20.5
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: 2021-07-02 00:00:00.000000000 Z
14
+ date: 2021-07-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -148,7 +148,6 @@ executables: []
148
148
  extensions: []
149
149
  extra_rdoc_files: []
150
150
  files:
151
- - ".github/workflows/cd.yml"
152
151
  - ".github/workflows/ci.yaml"
153
152
  - ".gitignore"
154
153
  - ".releaserc.json"
@@ -1,32 +0,0 @@
1
- name: CD
2
-
3
- on:
4
- release:
5
- types: [published]
6
-
7
- jobs:
8
- dispatch_schema:
9
- name: Dispatch Schema to Clients
10
- runs-on: ubuntu-latest
11
-
12
- strategy:
13
- matrix:
14
- client_repo:
15
- - ladybug-tools/lbt-grasshopper
16
-
17
- steps:
18
- - name: Send repo dispatch to lbt-grasshopper
19
- env:
20
- RELEASE_TAG: ${{ github.event.release.tag_name }}
21
- DISPATCH_URL: https://api.github.com/repos/${{ matrix.client_repo }}/dispatches
22
- GH_TOKEN: ${{ secrets.GH_TOKEN }}
23
- run: |
24
- curl -X POST $DISPATCH_URL \
25
- -H "Accept: application/vnd.github.everest-preview+json" \
26
- -d '{
27
- "event_type": "honeybee_openstudio_gem_release",
28
- "client_payload": {
29
- "version" : "'$RELEASE_TAG'"
30
- }
31
- }' \
32
- -u ladybugbot:$GH_TOKEN