honeybee-openstudio 2.38.5 → 2.38.6

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: a6d0c0fa833bdb3f833eecade1c1d74936685962d69b3efb6cf41517b86fb4b8
4
- data.tar.gz: 1a77bbfc0da58fdc289398f69583e9a53ea1930d410e93c47b5ce4c31cc9c0d8
3
+ metadata.gz: b77ef2ddbd689cf19abe8c48c85b61eb1fb3b010b4fc68813dc9331a5c906c8d
4
+ data.tar.gz: f7d2cefe7765c6a59a580cec468c2f3271e1708b706414dab9d0d03153ef2769
5
5
  SHA512:
6
- metadata.gz: 2c49d214e7185f1379bbedf900566ef24d046fd95fc22d52ffcea5455c487124f6c8779b056d7d7da1775760691e9c1cbf6b338018307ba1003b93f29f9ef687
7
- data.tar.gz: f1d93d95d81bf0db97bd540b653686235ecf710a077756bb790ea531eb3ba7c1ce906611ede9d6584574ed0ccc7eb3250dd1515ee615cfee9424fc11a7a8ba45
6
+ metadata.gz: 94ece34b71cca0e294656b6e68f7099e500bc79c6a8c3d0a880990d2301a119fd6b9c18757d15122e7aa78998fe96913c330c21e677bfe388e2aa9cae35e06c5
7
+ data.tar.gz: 9334ccee3a16ebf15fc3163c416916db9a50039c416c568fe2710dd9de7045e9e691f5445cabcdc4f42fceeda3c9b85939ec69509c501d6c0c27c13371c9a071
@@ -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.38.5'
7
+ spec.version = '2.38.6'
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
 
@@ -60,7 +60,7 @@ module Honeybee
60
60
  end
61
61
 
62
62
  def self.humidity_type_from_design_day(design_day)
63
- humidity_type = design_day.humidityIndicatingType
63
+ humidity_type = design_day.humidityConditionType
64
64
  allowed_types = ['WetBulb', 'Dewpoint', 'HumidityRatio', 'Enthalpy']
65
65
  if !allowed_types.any?{ |s| s.casecmp(humidity_type)==0 }
66
66
  raise "'#{humidity_type}' is not an allowed humidity type"
@@ -72,7 +72,13 @@ module Honeybee
72
72
  hash = {}
73
73
  hash[:type] = 'HumidityCondition'
74
74
  hash[:humidity_type] = humidity_type_from_design_day(design_day)
75
- hash[:humidity_value] = design_day.humidityIndicatingConditionsAtMaximumDryBulb
75
+ if hash[:humidity_type] == 'HumidityRatio'
76
+ hash[:humidity_value] = design_day.humidityRatioAtMaximumDryBulb
77
+ elsif hash[:humidity_type] == 'Enthalpy'
78
+ hash[:humidity_value] = design_day.enthalpyAtMaximumDryBulb
79
+ else
80
+ hash[:humidity_value] = design_day.wetBulbOrDewPointAtMaximumDryBulb
81
+ end
76
82
  hash[:barometric_pressure] = design_day.barometricPressure
77
83
  hash[:rain] = design_day.rainIndicator
78
84
  hash[:snow_on_ground] = design_day.snowIndicator
@@ -53,8 +53,15 @@ module Honeybee
53
53
  os_des_day.setDailyDryBulbTemperatureRange(@hash[:dry_bulb_condition][:dry_bulb_range])
54
54
 
55
55
  # set the HumidityCondition properties
56
- os_des_day.setHumidityIndicatingType(@hash[:humidity_condition][:humidity_type])
57
- os_des_day.setHumidityIndicatingConditionsAtMaximumDryBulb(@hash[:humidity_condition][:humidity_value])
56
+ humid_type = @hash[:humidity_condition][:humidity_type]
57
+ os_des_day.setHumidityConditionType(@hash[:humidity_condition][:humidity_type])
58
+ if humid_type == 'HumidityRatio'
59
+ os_des_day.setHumidityRatioAtMaximumDryBulb(@hash[:humidity_condition][:humidity_value])
60
+ elsif humid_type == 'Enthalpy'
61
+ os_des_day.setEnthalpyAtMaximumDryBulb(@hash[:humidity_condition][:humidity_value])
62
+ else
63
+ os_des_day.setWetBulbOrDewPointAtMaximumDryBulb(@hash[:humidity_condition][:humidity_value])
64
+ end
58
65
  if @hash[:humidity_condition][:barometric_pressure]
59
66
  os_des_day.setBarometricPressure(@hash[:humidity_condition][:barometric_pressure])
60
67
  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.38.5
4
+ version: 2.38.6
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: 2024-03-09 00:00:00.000000000 Z
14
+ date: 2024-03-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure