honeybee-openstudio 2.30.2 → 2.30.3

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: 6bb9b86a74ea7da0251c7b38d2bf63ada515433d2c47d1ec04b0db33afb5a284
4
- data.tar.gz: 15400334b74c6e95dc1e04ffd61b320573cf288d983aa3c7a8210940be27167d
3
+ metadata.gz: 405367012a4fe8e67ec3483dd8203f67ef3013cb9a58e0c7d3e5337e60d7f532
4
+ data.tar.gz: 605f17f708fd319aca60f93eacc1065bf0bc672f678aa89f1f52d3f8a9b0aad2
5
5
  SHA512:
6
- metadata.gz: b6db95d08e90da7feef6203ccb0fb0da0a616e7dd454bfa624177c0659d0eedfebebec1c364972e170e58aa65deeb8c2474567906da02d120a81793456eaae55
7
- data.tar.gz: 95da385bb39442cff5368303ea7d36fa928772bf606c8f6b3173939e25ec4a64118b32ea018b9f98bbd922a3496f4dbf6b068637f27791836fcf8021ab32b94b
6
+ metadata.gz: 71d415015818abf1c16178492650b27b05a65c44c03d704005c780157ce2e6e375903358c1e1140f78c1e45682cb5a96b4de9a8dd86a6fdc6f6880405d6b56c0
7
+ data.tar.gz: b12fc572975ceb1eef4a78d0e53bd6ca45672e7ad43e24dfd85038d2cffa620c8dd95fd8764e637f1aa524d7eefee4119b44f99dce2dffea439edeaeb0ac89cd
@@ -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.30.2'
7
+ spec.version = '2.30.3'
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
 
@@ -35,6 +35,23 @@ require 'to_openstudio/model_object'
35
35
  module Honeybee
36
36
  class ScheduleTypeLimit < ModelObject
37
37
 
38
+ @@unit_types = [
39
+ 'Dimensionless',
40
+ 'Temperature',
41
+ 'DeltaTemperature',
42
+ 'PrecipitationRate',
43
+ 'Angle',
44
+ 'ConvectionCoefficient',
45
+ 'ActivityLevel',
46
+ 'Velocity',
47
+ 'Capacity',
48
+ 'Power',
49
+ 'Availability',
50
+ 'Percent',
51
+ 'Control',
52
+ 'Mode'
53
+ ]
54
+
38
55
  def self.from_schedule_type_limit(schedule_type_limit)
39
56
  # create an empty hash
40
57
  hash = {}
@@ -71,7 +88,9 @@ module Honeybee
71
88
  elsif unit_type == 'Controlmode'
72
89
  unit_type = 'Control'
73
90
  end
74
- hash[:unit_type] = unit_type
91
+ if @@unit_types.include? unit_type
92
+ hash[:unit_type] = unit_type
93
+ end
75
94
 
76
95
  hash
77
96
  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.30.2
4
+ version: 2.30.3
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: 2022-02-08 00:00:00.000000000 Z
14
+ date: 2022-02-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler