honeybee-energy 1.116.20__py2.py3-none-any.whl → 1.116.21__py2.py3-none-any.whl

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.

Potentially problematic release.


This version of honeybee-energy might be problematic. Click here for more details.

@@ -326,7 +326,8 @@ class ColorRoom(_ColorObject):
326
326
  # match the rooms with the data collections
327
327
  self._space_based = bool(space_based)
328
328
  self._matched_objects = match_rooms_to_data(
329
- data_collections, rooms, space_based=self._space_based)
329
+ data_collections, rooms, space_based=self._space_based,
330
+ zone_correct_mult=False)
330
331
  if len(self._matched_objects) == 0:
331
332
  raise ValueError('None of the ColorRoom data collections could be '
332
333
  'matched to the input rooms')
@@ -424,14 +425,26 @@ class ColorRoom(_ColorObject):
424
425
  These floor areas will always be in either square meters or square feet
425
426
  depending on whether the geo_unit is either SI or IP.
426
427
  """
428
+ # correct for more than one room in a zone
429
+ if not self.space_based:
430
+ zones = {}
431
+ for room in self.matched_rooms:
432
+ try:
433
+ zones[room.zone] += room.floor_area
434
+ except KeyError: # first room to be found in the zone
435
+ zones[room.zone] = room.floor_area
436
+ floor_areas = [zones[room.zone] for room in self.matched_rooms]
437
+ else:
438
+ floor_areas = [room.floor_area for room in self.matched_rooms]
439
+ # convert units if they are not conventional
427
440
  if self._geo_unit in ('m', 'ft'): # no need to do unit conversions
428
- return [room.floor_area for room in self.matched_rooms]
441
+ return floor_areas
429
442
  elif self._geo_unit == 'mm': # convert to meters
430
- return [room.floor_area / 1000000.0 for room in self.matched_rooms]
443
+ return [ar / 1000000.0 for ar in floor_areas]
431
444
  elif self._geo_unit == 'in': # convert to feet
432
- return [room.floor_area / 144.0 for room in self.matched_rooms]
445
+ return [ar / 144.0 for ar in floor_areas]
433
446
  else: # assume it's cm; convert to meters
434
- return [room.floor_area / 10000.0 for room in self.matched_rooms]
447
+ return [ar / 10000.0 for ar in floor_areas]
435
448
 
436
449
  @property
437
450
  def graphic_container(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: honeybee-energy
3
- Version: 1.116.20
3
+ Version: 1.116.21
4
4
  Summary: Energy simulation library for honeybee.
5
5
  Home-page: https://github.com/ladybug-tools/honeybee-energy
6
6
  Author: Ladybug Tools
@@ -120,7 +120,7 @@ honeybee_energy/properties/room.py,sha256=lCiw8wqRVOFgZc4FjXVjcrKk3hziZ9IvZ0CSEH
120
120
  honeybee_energy/properties/shade.py,sha256=Aj1RZh2KSkVMn5VT_QUckF_5R3I0O3b35EabqaI2i5g,14107
121
121
  honeybee_energy/properties/shademesh.py,sha256=ykbs4llT86C_U5BhQy2EbINewfg9eVxiPaq5yCRhud8,11486
122
122
  honeybee_energy/result/__init__.py,sha256=U9VEpLsVJg2vHfFflTkmXxc4QUpkw1Phz2io8pYHbHs,43
123
- honeybee_energy/result/colorobj.py,sha256=17osWW5KD-_2XS3qQJwygWOtps3wFYQCXcf5lhGN5RE,28047
123
+ honeybee_energy/result/colorobj.py,sha256=O2BN3je04LtIRxuVbD8gwDRbfSEKa8vXiyr5FtCkvkc,28553
124
124
  honeybee_energy/result/emissions.py,sha256=ftb5ogxBhmZFLgwOaDkTwocfoQXQsf99jQlNUMlAzs4,12953
125
125
  honeybee_energy/result/err.py,sha256=xdxtpZFMbX2_hoCSPFgmgiOZzhSX1NCLNj3PkC8xjHc,3312
126
126
  honeybee_energy/result/eui.py,sha256=L3uWBoB6pE46seS9u6_791EhcZ7JGp2ZJgaXKM3kP5Y,4327
@@ -156,9 +156,9 @@ honeybee_energy/ventcool/opening.py,sha256=ZywoADlNQ6_8OfjV71ZUpbCAetQrRVj7aprBj
156
156
  honeybee_energy/ventcool/simulation.py,sha256=gMF4sgCQ5R4iFWPnvvB3wxgeP_zEwnWl71ObIIe4XGU,14423
157
157
  tests/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
158
158
  tests/fixtures/userdata_fixtures.py,sha256=yDvBR6nsltel_U8hUoUsJ6yufPKTR7Wnsgxe68HtswQ,313
159
- honeybee_energy-1.116.20.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
160
- honeybee_energy-1.116.20.dist-info/METADATA,sha256=ywcoxs49swpFhagqerOeBWamtlP9JfhsKYISsePhY7E,3575
161
- honeybee_energy-1.116.20.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
162
- honeybee_energy-1.116.20.dist-info/entry_points.txt,sha256=QOMJbH-StaxT4hCjskZtqetNCMNioP3ZiuhoLQ6MANc,63
163
- honeybee_energy-1.116.20.dist-info/top_level.txt,sha256=V9Lz0281hfT83Fy0fSdn_6vwRK9vTQe1_LQXd0_-gAI,22
164
- honeybee_energy-1.116.20.dist-info/RECORD,,
159
+ honeybee_energy-1.116.21.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
160
+ honeybee_energy-1.116.21.dist-info/METADATA,sha256=BTO6JVs1MYAPEKPOP95TVvLprfsIzhDwdvMAjT-rpG4,3575
161
+ honeybee_energy-1.116.21.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
162
+ honeybee_energy-1.116.21.dist-info/entry_points.txt,sha256=QOMJbH-StaxT4hCjskZtqetNCMNioP3ZiuhoLQ6MANc,63
163
+ honeybee_energy-1.116.21.dist-info/top_level.txt,sha256=V9Lz0281hfT83Fy0fSdn_6vwRK9vTQe1_LQXd0_-gAI,22
164
+ honeybee_energy-1.116.21.dist-info/RECORD,,