honeybee-openstudio 2.20.1 → 2.20.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yaml +16 -0
- data/honeybee-openstudio.gemspec +1 -1
- data/lib/to_openstudio/hvac/template.rb +3 -1
- data/lib/to_openstudio/material/window_blind.rb +24 -0
- metadata +2 -3
- data/.github/workflows/cd.yml +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9366738c4b20407224bc1d89aa24c281e7fa1048af90a33f1859cec06103410
|
4
|
+
data.tar.gz: 79bf79c2b6b08d35f3265c4078fae99dc411c6e5cc71769c779a9f34152c92c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a3b29719185b64f18697b8deadc90032b81ae43e11e0bafa434a890d023a46bb80450e042cf78caefa9310b1b8c25baa57a74339595ab70b62e3eb602ebb951
|
7
|
+
data.tar.gz: d54a8cf426d90a4d472553bdad1173d605205316b48a04fcd47cf24e1b4aa221d2756ac9e218cac46afc540f90f822232fdac346f8b838215c07984c8147874b
|
data/.github/workflows/ci.yaml
CHANGED
@@ -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
|
data/honeybee-openstudio.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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"
|
data/.github/workflows/cd.yml
DELETED
@@ -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
|