honeybee-openstudio 2.9.0 → 2.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/honeybee-openstudio.gemspec +1 -1
- data/lib/files/Honeybee.rb +7 -0
- data/lib/files/honeybee_workflow.osw +2 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3079741f838bba3b05a4b168b70739072a77f7da9b7fe9fe8b65132fc9b38733
|
4
|
+
data.tar.gz: 9f2f6997db58ca1163e6bbae9f10600e0b59fb4e65a46972910e61fcba31d12b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 238548fcbcae965a11c42bc82da68c68b4c9212cef14bee39262cfd74617e59bc029315b15edc40b1a229c3aa185c8a943adb992f8630ceadddee46abe0d3b68
|
7
|
+
data.tar.gz: f6fcac87e29808a302629fcf2f31afea75e4f68cc83aabaf2fd19bd09d67ae0d80a5b091f18a4023c32e8b07ae88ced54987482d0eba370af9112760500ac4eb
|
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.9.
|
7
|
+
spec.version = '2.9.1'
|
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
|
|
data/lib/files/Honeybee.rb
CHANGED
@@ -72,6 +72,11 @@ module URBANopt
|
|
72
72
|
feature_id = feature.id
|
73
73
|
feature_type = feature.type
|
74
74
|
feature_name = feature.name
|
75
|
+
|
76
|
+
# take the centroid of the vertices as the location of the building
|
77
|
+
feature_vertices_coordinates = feature.feature_json[:geometry][:coordinates][0]
|
78
|
+
feature_location = feature.find_feature_center(feature_vertices_coordinates).to_s
|
79
|
+
|
75
80
|
if feature_names.size == 1
|
76
81
|
feature_name = feature_names[0]
|
77
82
|
end
|
@@ -103,6 +108,8 @@ module URBANopt
|
|
103
108
|
osw, 'default_feature_reports', 'feature_name', feature_name)
|
104
109
|
OpenStudio::Extension.set_measure_argument(
|
105
110
|
osw, 'default_feature_reports', 'feature_type', feature_type)
|
111
|
+
OpenStudio::Extension.set_measure_argument(
|
112
|
+
osw, 'default_feature_reports', 'feature_location', feature_location)
|
106
113
|
|
107
114
|
end
|
108
115
|
return osw
|
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.9.
|
4
|
+
version: 2.9.1
|
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-12-
|
14
|
+
date: 2020-12-18 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -296,7 +296,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
296
296
|
- !ruby/object:Gem::Version
|
297
297
|
version: '0'
|
298
298
|
requirements: []
|
299
|
-
|
299
|
+
rubyforge_project:
|
300
|
+
rubygems_version: 2.7.6
|
300
301
|
signing_key:
|
301
302
|
specification_version: 4
|
302
303
|
summary: Gem for translating between Honeybee JSON and OpenStudio Model.
|