dragonfly-radiance 0.3.227__py2.py3-none-any.whl → 0.3.228__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 dragonfly-radiance might be problematic. Click here for more details.

@@ -60,6 +60,22 @@ class BuildingRadianceProperties(object):
60
60
  for room_2d in self.host.unique_room_2ds:
61
61
  room_2d.properties.radiance.add_grid_parameter(grid_par)
62
62
 
63
+ def make_plenums(self, room_ids):
64
+ """Turn Room2Ds on the host Building into plenums with no inside grid parameters.
65
+
66
+ Grid parameters for exterior facades will be kept. This is useful to
67
+ appropriately assign properties for closets, underfloor spaces, and
68
+ drop ceilings.
69
+
70
+ Args:
71
+ room_ids: A list of identifiers for Room2Ds on this Building to be
72
+ converted into plenums.
73
+ """
74
+ room_ids = set(room_ids)
75
+ for rm in self.host.unique_room_2ds:
76
+ if rm.identifier in room_ids:
77
+ rm.properties.radiance.make_plenum()
78
+
63
79
  @classmethod
64
80
  def from_dict(cls, data, host):
65
81
  """Create BuildingRadianceProperties from a dictionary.
@@ -5,7 +5,7 @@ from honeybee_radiance.modifierset import ModifierSet
5
5
  from honeybee_radiance.lib.modifiersets import generic_modifier_set_visible
6
6
 
7
7
  import dragonfly_radiance.gridpar as sg_par
8
- from ..gridpar import _GridParameterBase
8
+ from ..gridpar import _GridParameterBase, RoomGridParameter, RoomRadialGridParameter
9
9
 
10
10
 
11
11
  class Room2DRadianceProperties(object):
@@ -93,6 +93,19 @@ class Room2DRadianceProperties(object):
93
93
  'Expected GridParameter. Got {}.'.format(type(grid_parameter))
94
94
  self._grid_parameters.append(grid_parameter)
95
95
 
96
+ def make_plenum(self):
97
+ """Turn the host Room2D into a plenum with no grid parameters inside the room.
98
+
99
+ Grid parameters for exterior facades will be kept. This is useful to
100
+ appropriately assign properties for closets, underfloor spaces, and
101
+ drop ceilings.
102
+ """
103
+ plenum_g_par = []
104
+ for g_par in self._grid_parameters:
105
+ if not isinstance(g_par, (RoomGridParameter, RoomRadialGridParameter)):
106
+ plenum_g_par.append(g_par)
107
+ self._grid_parameters = plenum_g_par
108
+
96
109
  @classmethod
97
110
  def from_dict(cls, data, host):
98
111
  """Create Room2DRadianceProperties from a dictionary.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dragonfly-radiance
3
- Version: 0.3.227
3
+ Version: 0.3.228
4
4
  Summary: Dragonfly extension for radiance simulation.
5
5
  Home-page: https://github.com/ladybug-tools/dragonfly-radiance
6
6
  Author: Ladybug Tools
@@ -5,14 +5,14 @@ dragonfly_radiance/gridpar.py,sha256=3u04rncp2Oy-ckpwwvTAZbvriy8J560Vxk0fjCx-bNo
5
5
  dragonfly_radiance/cli/__init__.py,sha256=7Zx_-nOm0gIioPH5XtVyrTfGPwzniTUF3vqcCp4RLn4,423
6
6
  dragonfly_radiance/cli/translate.py,sha256=w2ljust9uJ5hQDICwGwIYsPA_NhhHG4TbXTjHhIkf2Y,3525
7
7
  dragonfly_radiance/properties/__init__.py,sha256=h-O2WRFI5r12owvSQUrSgdLmlhM7shJAvzLFGryG3rk,37
8
- dragonfly_radiance/properties/building.py,sha256=McIPA3DjjzrD8PpMPBeeKc3eBN9f_POB661I63WKV4Y,5658
8
+ dragonfly_radiance/properties/building.py,sha256=nRjezCr7JLMD6fsmQhYBb2GNUtrgtKV2Tli8l9tJ1Fg,6283
9
9
  dragonfly_radiance/properties/context.py,sha256=WshH9BOhqbwvxmILRugTMfbvTMl8u5QzIETbJiORTUk,5250
10
10
  dragonfly_radiance/properties/model.py,sha256=mO4RB8l7fAtBi2JMOgDYmr1FZQsEfJ37DakmHA_XBWo,12529
11
- dragonfly_radiance/properties/room2d.py,sha256=gYgP32T9KwP20mg0KZEh941tQC94l_zoxcDP2K5X9l0,8535
11
+ dragonfly_radiance/properties/room2d.py,sha256=I_JcNqOjhwov-U0wiFc9JeMmTX1Wukc-jPmU0khpEI4,9125
12
12
  dragonfly_radiance/properties/story.py,sha256=htHHyAh8tNdQCGJGMvbI9Xo3RAdHdC8JPE1fnEPY-44,4519
13
- dragonfly_radiance-0.3.227.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
14
- dragonfly_radiance-0.3.227.dist-info/METADATA,sha256=hBCDxTGzRtcTMBdtO2z4PJgbRIwK-PDmzPM2wP2T4tM,2328
15
- dragonfly_radiance-0.3.227.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
16
- dragonfly_radiance-0.3.227.dist-info/entry_points.txt,sha256=7KZdeDvrwJ-ZB0LiTJ3TBkYJAmLl6_uSXXhZnLGct4g,71
17
- dragonfly_radiance-0.3.227.dist-info/top_level.txt,sha256=uvkDZDtPEVgdj7rWsDAl4vcUIuWT7GFBBVmFK4pNE4s,19
18
- dragonfly_radiance-0.3.227.dist-info/RECORD,,
13
+ dragonfly_radiance-0.3.228.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
14
+ dragonfly_radiance-0.3.228.dist-info/METADATA,sha256=oB_s0D2RiZ31a3iTJ1wWCCPbrE-z0CKpKeSttD9hg6I,2328
15
+ dragonfly_radiance-0.3.228.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
16
+ dragonfly_radiance-0.3.228.dist-info/entry_points.txt,sha256=7KZdeDvrwJ-ZB0LiTJ3TBkYJAmLl6_uSXXhZnLGct4g,71
17
+ dragonfly_radiance-0.3.228.dist-info/top_level.txt,sha256=uvkDZDtPEVgdj7rWsDAl4vcUIuWT7GFBBVmFK4pNE4s,19
18
+ dragonfly_radiance-0.3.228.dist-info/RECORD,,