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 +4 -4
- data/honeybee-openstudio.gemspec +1 -1
- data/lib/from_honeybee/hvac/template.rb +6 -3
- data/lib/from_honeybee/model.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 286d4ed7b7981b2f557e672e6a5e1b7587d36aae5ca727fbb36d290ce4dd4558
|
|
4
|
+
data.tar.gz: 3334ff15c0a4605267b7d845d14273b7b07c39e5caba0f77244b5973a1246961
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8470fec97960b3607d23b13bcd1e94b0b6cbd98b3da5843172f8bc379b6c55dd52bb252226baed018206f4876cb41b64dbce460bb25f008bcd2debf23df01d94
|
|
7
|
+
data.tar.gz: f485a99da6dac5379af55dd40abd5d7d4a401711cf94d40be37d29c5beaa06fc09102e2a511e8aceab5ed0dc22159c9f9348f59442aa49081118edb80cb1c487
|
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.5.
|
|
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
|
|
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 ==
|
|
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
|
-
|
|
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
|
|
data/lib/from_honeybee/model.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
14
|
+
date: 2020-08-08 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: bundler
|