Skip to content

Commit c87d00c

Browse files
committed
fix(room2d): Expose Room2D.has_floor and .has_ceiling properties
1 parent 80329ec commit c87d00c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

docs/model-template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf8" />
55
<title>{{title}}</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<link rel="shortcut icon" href="https://www.ladybug.tools/assets/img/dragonfly.png">
7+
<link rel="shortcut icon" href="https://github.com/ladybug-tools/artwork/raw/master/icons_bugs/ico/dragonfly.ico">
88
<style>
99
body {
1010
padding: 0;

dragonfly_schema/model.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,22 @@ class Room2D(IDdBaseModel):
7979
'to the outdoors.'
8080
)
8181

82+
has_floor: bool = Field(
83+
True,
84+
description='A boolean for whether the room has a Floor (True) or an '
85+
'AirBoundary (False). If False, this property will only be meaningful if the '
86+
'model is translated to Honeybee with ceiling adjacency solved and there '
87+
'is a Room2D below this one with a has_ceiling property set to False.'
88+
)
89+
90+
has_ceiling: bool = Field(
91+
True,
92+
description='A boolean for whether the room has a RoofCeiling (True) or an '
93+
'AirBoundary (False). If False, this property will only be meaningful if the '
94+
'model is translated to Honeybee with ceiling adjacency solved and there '
95+
'is a Room2D above this one with a has_floor property set to False.'
96+
)
97+
8298
boundary_conditions: List[
8399
Union[Ground, Outdoors, Surface, Adiabatic, OtherSideTemperature]
84100
] = Field(

0 commit comments

Comments
 (0)