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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50bd29b0bca99508709cea52595072ae27dda7359bc162ef0de858175bad07ea
4
- data.tar.gz: d3608a262db331c2e526c989300492561e45bc8c5ca72020aa12a38c349a462b
3
+ metadata.gz: 3079741f838bba3b05a4b168b70739072a77f7da9b7fe9fe8b65132fc9b38733
4
+ data.tar.gz: 9f2f6997db58ca1163e6bbae9f10600e0b59fb4e65a46972910e61fcba31d12b
5
5
  SHA512:
6
- metadata.gz: e2043a1a03fb0df9b9e7f1dee318fbef24f4be496506f93e395a3a4f6f5a646f17cd5cc71e4a162e0c4eb9f000e31619cf6c26c4c7aeb5a4a0ebab5a01d8cb4f
7
- data.tar.gz: 144f09a0b5551652bf2b27fc8cdbb378ace72eea40f6c1ffd712e550aa91fa7d38963312957e22a2750bc5ad5e82bf0828133b456fe45322eafaa68fd9c8675d
6
+ metadata.gz: 238548fcbcae965a11c42bc82da68c68b4c9212cef14bee39262cfd74617e59bc029315b15edc40b1a229c3aa185c8a943adb992f8630ceadddee46abe0d3b68
7
+ data.tar.gz: f6fcac87e29808a302629fcf2f31afea75e4f68cc83aabaf2fd19bd09d67ae0d80a5b091f18a4023c32e8b07ae88ced54987482d0eba370af9112760500ac4eb
@@ -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.0'
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
 
@@ -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
@@ -39,7 +39,8 @@
39
39
  "__SKIP__": true,
40
40
  "feature_id": null,
41
41
  "feature_name": null,
42
- "feature_type": null
42
+ "feature_type": null,
43
+ "feature_location": null
43
44
  }
44
45
  }
45
46
  ],
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.0
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-10 00:00:00.000000000 Z
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
- rubygems_version: 3.1.4
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.