honeybee-openstudio 2.34.6 → 2.34.8

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: 4c23eea2c9a30bbdb29eac4e1510577dce8a459386bff13afdab121a33aa2b2d
4
- data.tar.gz: afeb68c0834f50351752b6ae061beafa7fb57c5140986e0d86e6a76e4e6cd0a7
3
+ metadata.gz: badea0be05124c62097e7732560433b8a1d8941aecc21af3e9ab8f2e7b19b837
4
+ data.tar.gz: 53ddac62aaffe8a76f01ac3f8bf02f0b167dca4fc0aa3b509c6b11e3d6181fec
5
5
  SHA512:
6
- metadata.gz: 5d606d121fceef4a970bb0c9afb59403ae774dcdcd4cf536aad148acbcbd5b61bb64bb3652b87f155c9638e1f59d92bfa8706051906b5e5e1bccaf7c1109b7d4
7
- data.tar.gz: af6974feb3c3697a3ec0f1a3653b366eef9066bec4f94a95d1e1701995902e79a98699b10a7c87075528233773a5058040bccacd7efd439aee168527967a933b
6
+ metadata.gz: 98558f65b918299e64548cb37ff75d2a9042970ccf64cb9ece29a7b772645e06d59a1e3ba212948ef312873c72d7a721d9066212d0947248905285e9bf5cb34d
7
+ data.tar.gz: 901a6c78784757090e5873f282bdfc870de96c4cbe96d061ac8c80831431f51432fb79f3c8f5ae8e258b5c0904b878312e443a0a8d28eb41e2bd290dc09fbf02
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ gemspec
7
7
  if File.exist?('../OpenStudio-extension-gem') # local development copy
8
8
  gem 'openstudio-extension', path: '../OpenStudio-extension-gem'
9
9
  else # get it from rubygems.org
10
- gem 'openstudio-extension', '0.6.0'
10
+ gem 'openstudio-extension', '0.6.1'
11
11
  end
12
12
 
13
13
  # coveralls gem is used to generate coverage reports through CI
@@ -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.34.6'
7
+ spec.version = '2.34.8'
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
 
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
33
33
  end
34
34
 
35
35
  spec.add_dependency 'json_pure'
36
- spec.add_dependency 'openstudio-extension', '0.6.0'
36
+ spec.add_dependency 'openstudio-extension', '0.6.1'
37
37
  spec.add_dependency 'openstudio-standards', '~> 0.3.0'
38
38
  end
@@ -2,43 +2,60 @@ source 'http://rubygems.org'
2
2
 
3
3
  ruby '~> 2.7.0'
4
4
 
5
- allow_local = ENV['FAVOR_LOCAL_GEMS']
6
-
7
- # pin this dependency to avoid unicode_normalize error
5
+ # pin these dependencies to prevent releases of gems from breaking URBANopt
8
6
  gem 'addressable', '2.8.1'
7
+ gem 'ansi', '1.5.0'
8
+ gem 'ast', '2.4.2'
9
+ gem 'bcl', '0.7.1'
10
+ gem 'builder', '3.2.4'
11
+ gem 'docile', '1.4.0'
12
+ gem 'faraday', '1.0.1'
13
+ gem 'git', '1.12.0'
14
+ gem 'json-schema', '2.8.1'
15
+ gem 'json_pure', '2.6.3'
16
+ gem 'macaddr', '1.7.2'
17
+ gem 'minitar', '0.9'
18
+ gem 'multipart-post', '2.3.0'
19
+ gem 'octokit', '4.18.0'
20
+ gem 'openstudio-calibration', '0.7.0'
21
+ gem 'openstudio-common-measures', '0.7.0'
22
+ gem 'openstudio-ee', '0.7.0'
23
+ gem 'openstudio-extension', '0.6.0'
24
+ gem 'openstudio-geb', '0.2.1'
25
+ gem 'openstudio-load-flexibility-measures', '0.6.1'
26
+ gem 'openstudio_measure_tester', '0.3.2'
27
+ gem 'openstudio-model-articulation', '0.7.0'
28
+ gem 'openstudio-standards', '0.3.0'
29
+ gem 'openstudio-workflow', '2.3.1'
30
+ gem 'parallel', '1.19.2'
9
31
  gem 'parser', '3.2.2.2'
10
-
11
- if allow_local && File.exist?('../openstudio-common-measures-gem')
12
- gem 'openstudio-common-measures', path: '../openstudio-common-measures-gem'
13
- elsif allow_local
14
- gem 'openstudio-common-measures', github: 'NREL/openstudio-common-measures-gem', branch: 'develop'
15
- else
16
- gem 'openstudio-common-measures', '~> 0.7.0'
17
- end
18
-
19
- if allow_local && File.exist?('../openstudio-model-articulation-gem')
20
- gem 'openstudio-model-articulation', path: '../openstudio-model-articulation-gem'
21
- elsif allow_local
22
- gem 'openstudio-model-articulation', github: 'NREL/openstudio-model-articulation-gem', branch: 'develop'
23
- else
24
- gem 'openstudio-model-articulation', '0.7.0'
25
- end
26
-
27
- if allow_local && File.exist?('../urbanopt-geojson-gem')
28
- gem 'urbanopt-geojson', path: '../urbanopt-geojson-gem'
29
- elsif allow_local
30
- gem 'urbanopt-geojson', github: 'URBANopt/urbanopt-geojson-gem', branch: 'develop'
31
- else
32
- gem 'urbanopt-geojson', '~> 0.9.0'
33
- end
34
-
35
- if allow_local && File.exist?('../urbanopt-reporting-gem')
36
- gem 'urbanopt-reporting', path: '../urbanopt-reporting-gem'
37
- elsif allow_local
38
- gem 'urbanopt-reporting', github: 'URBANopt/urbanopt-reporting-gem', branch: 'develop'
39
- else
40
- gem 'urbanopt-reporting', '~> 0.7.0'
41
- end
32
+ gem 'public_suffix', '5.0.1'
33
+ gem 'minitest', '5.14.4'
34
+ gem 'minitest-reporters', '1.4.3'
35
+ gem 'rchardet', '1.8.0'
36
+ gem 'rake', '13.0.6'
37
+ gem 'rainbow', '3.1.1'
38
+ gem 'regexp_parser', '2.8.1'
39
+ gem 'rexml', '3.2.5'
40
+ gem 'rubocop', '1.15.0'
41
+ gem 'rubocop-ast', '1.29.0'
42
+ gem 'rubocop-checkstyle_formatter', '0.4.0'
43
+ gem 'rubocop-performance', '1.11.5'
44
+ gem 'ruby-ole', '1.2.12.2'
45
+ gem 'ruby-progressbar', '1.13.0'
46
+ gem 'rubyzip', '2.3.2'
47
+ gem 'sawyer', '0.8.2'
48
+ gem 'simplecov', '0.18.5'
49
+ gem 'simplecov-html', '0.12.3'
50
+ gem 'spreadsheet', '1.2.9'
51
+ gem 'systemu', '2.6.5'
52
+ gem 'unicode-display_width', '2.4.2'
53
+ gem 'urbanopt-core', '0.9.0'
54
+ gem 'urbanopt-geojson', '0.9.0'
55
+ gem 'urbanopt-reporting', '0.7.0'
56
+ gem 'uuid', '2.3.9'
57
+ gem 'yamler', '0.1.0'
58
+ gem 'zliby', '0.0.5'
42
59
 
43
60
  # include the honeybee-openstudio-gem
44
61
  gem 'honeybee-openstudio', '2.33.4'
@@ -45,19 +45,20 @@ module Honeybee
45
45
  end
46
46
 
47
47
  def to_openstudio(openstudio_model)
48
- # write the shaded and unsaded versions of the construction into the model
49
- # reverse the shaded and unshaded identifiers so unshaded one is assigned to apertures
48
+ # set the unshaded ID to be the whole construction ID so unshaded one is assigned to apertures
50
49
  unshd_id = @hash[:identifier]
51
- shd_id = @hash[:window_construction][:identifier]
52
50
  @hash[:window_construction][:identifier] = unshd_id
51
+ # derive a new ID for the shaded construction that will not conflict with any bare versions of the construction
52
+ shd_id = @hash[:identifier] + '_Shaded'
53
53
  @hash[:identifier] = shd_id
54
+
54
55
  # create the unshaded construction
55
56
  unshd_constr_obj = WindowConstructionAbridged.new(@hash[:window_construction])
56
57
  @construction = unshd_constr_obj.to_openstudio(openstudio_model)
57
58
 
58
59
  # create the shaded construction
59
60
  @shade_construction = OpenStudio::Model::Construction.new(openstudio_model)
60
- @shade_construction.setName(shd_id)
61
+ @shade_construction.setName(@hash[:identifier])
61
62
  unless @hash[:display_name].nil?
62
63
  @shade_construction.setDisplayName(@hash[:display_name])
63
64
  end
@@ -99,8 +99,14 @@ module Honeybee
99
99
 
100
100
  # create OpenStudio objects in the OpenStudio model
101
101
  def create_openstudio_objects(log_report=true)
102
- # assign a standards building type so that David's measures can run
102
+ # assign the building name and a default standards building type so measures can run
103
103
  building = @openstudio_model.getBuilding
104
+ if @hash[:display_name]
105
+ clean_name = @hash[:display_name].to_s.gsub(/[^.A-Za-z0-9_-] /, " ")
106
+ building.setName(clean_name)
107
+ else
108
+ building.setName(@hash[:identifier])
109
+ end
104
110
  if building.standardsBuildingType.empty?
105
111
  building.setStandardsBuildingType('MediumOffice')
106
112
  end
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.34.6
4
+ version: 2.34.8
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: 2023-06-14 00:00:00.000000000 Z
14
+ date: 2023-07-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure
@@ -33,14 +33,14 @@ dependencies:
33
33
  requirements:
34
34
  - - '='
35
35
  - !ruby/object:Gem::Version
36
- version: 0.6.0
36
+ version: 0.6.1
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - '='
42
42
  - !ruby/object:Gem::Version
43
- version: 0.6.0
43
+ version: 0.6.1
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: openstudio-standards
46
46
  requirement: !ruby/object:Gem::Requirement