honeybee-openstudio 2.5.0 → 2.5.1

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: 64524eed614e5d414c8b673a91c18d5061176d50d778cfb4f690ce310aa64529
4
- data.tar.gz: 376a419a30d101cca5b24d845fd0f5bc2443ba7837a465d79f2b1e8a849b74dc
3
+ metadata.gz: 286d4ed7b7981b2f557e672e6a5e1b7587d36aae5ca727fbb36d290ce4dd4558
4
+ data.tar.gz: 3334ff15c0a4605267b7d845d14273b7b07c39e5caba0f77244b5973a1246961
5
5
  SHA512:
6
- metadata.gz: fbce5f8914d3cc493f3499bbe0d31a09af2496f2ee9181da4719586be413da59ce7cd4ba27ce41c4eda3b727059b718367b862f81625747d52abe08922be96e1
7
- data.tar.gz: 6a92ee80a56265c2cfea1c6dea5a842da36d191b59fafdc2bef999fc5d778151b7a205c6f151b788875cf86373de12e572da08838d225b23ab56c7bc3ffe8c36
6
+ metadata.gz: 8470fec97960b3607d23b13bcd1e94b0b6cbd98b3da5843172f8bc379b6c55dd52bb252226baed018206f4876cb41b64dbce460bb25f008bcd2debf23df01d94
7
+ data.tar.gz: f485a99da6dac5379af55dd40abd5d7d4a401711cf94d40be37d29c5beaa06fc09102e2a511e8aceab5ed0dc22159c9f9348f59442aa49081118edb80cb1c487
@@ -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.5.0'
7
+ spec.version = '2.5.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
 
@@ -101,15 +101,18 @@ module FromHoneybee
101
101
  end
102
102
  end
103
103
 
104
- # create the HVAC system and assign the identifier to the air loop name if it exists
104
+ # create the HVAC system and assign the display name to the air loop name if it exists
105
105
  os_hvac = openstudio_model.add_cbecs_hvac_system(standard, equipment_type, zones)
106
106
  os_air_loop = nil
107
107
  air_loops = openstudio_model.getAirLoopHVACs
108
- unless air_loops.length == 0
108
+ unless air_loops.length == $air_loop_count # check if any new loops were added
109
+ $air_loop_count = air_loops.length
109
110
  os_air_loop = air_loops[-1]
110
111
  loop_name = os_air_loop.name
111
112
  unless loop_name.empty?
112
- os_air_loop.setName(@hash[:identifier] + ' - ' + loop_name.get)
113
+ if @hash[:display_name]
114
+ os_air_loop.setName(@hash[:display_name] + ' - ' + loop_name.get)
115
+ end
113
116
  end
114
117
  end
115
118
 
@@ -498,6 +498,7 @@ module FromHoneybee
498
498
 
499
499
  def create_hvacs
500
500
  if @hash[:properties][:energy][:hvacs]
501
+ $air_loop_count = 0 # track the total number of air loops in the model
501
502
  # gather all of the hashes of the HVACs
502
503
  hvac_hashes = Hash.new
503
504
  @hash[:properties][:energy][:hvacs].each do |hvac|
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.5.0
4
+ version: 2.5.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-08-07 00:00:00.000000000 Z
14
+ date: 2020-08-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler