dragonfly-schema 1.13.1__py2.py3-none-any.whl → 1.14.0__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.
@@ -0,0 +1 @@
1
+ """Dragonfly objects specific to comparison with other models."""
@@ -0,0 +1,56 @@
1
+ """Model comparison properties."""
2
+ from pydantic import Field, constr, conlist
3
+ from typing import List, Union
4
+
5
+ from honeybee_schema._base import NoExtraBaseModel
6
+
7
+ from ..window_parameter import SingleWindow, SimpleWindowArea, SimpleWindowRatio, \
8
+ RepeatingWindowRatio, RectangularWindows, DetailedWindows
9
+ from ..skylight_parameter import GriddedSkylightArea, GriddedSkylightRatio, \
10
+ DetailedSkylights
11
+
12
+
13
+ class Room2DComparisonProperties(NoExtraBaseModel):
14
+
15
+ type: constr(regex='^Room2DComparisonProperties$') = \
16
+ 'Room2DComparisonProperties'
17
+
18
+ floor_boundary: List[conlist(float, min_items=2, max_items=2)] = Field(
19
+ None,
20
+ min_items=3,
21
+ description='A list of 2D points representing the outer boundary vertices of '
22
+ 'the Room2D to which the host Room2D is being compared. The list should '
23
+ 'include at least 3 points and each point should be a list of 2 (x, y) values.'
24
+ )
25
+
26
+ floor_holes: List[conlist(conlist(float, min_items=2, max_items=2), min_items=3)] \
27
+ = Field(
28
+ None,
29
+ description='Optional list of lists with one list for each hole in the floor '
30
+ 'plate of the Room2D to which the host Room2D is being compared. Each hole '
31
+ 'should be a list of at least 2 points and each point a list '
32
+ 'of 2 (x, y) values. If None, it will be assumed that there are no '
33
+ 'holes in the floor plate.'
34
+ )
35
+
36
+ comparison_windows: List[Union[
37
+ None, SingleWindow, SimpleWindowArea, SimpleWindowRatio, RepeatingWindowRatio,
38
+ RectangularWindows, DetailedWindows
39
+ ]] = Field(
40
+ default=None,
41
+ description='A list of WindowParameter objects that dictate the window '
42
+ 'geometries of the Room2D to which the host Room2D is being compared.'
43
+ )
44
+
45
+ comparison_skylight: Union[
46
+ None, GriddedSkylightArea, GriddedSkylightRatio, DetailedSkylights
47
+ ] = Field(
48
+ default=None,
49
+ description='A SkylightParameter object for the Room2D to which the host '
50
+ 'Room2D is being compared.'
51
+ )
52
+
53
+
54
+ class ModelComparisonProperties(NoExtraBaseModel):
55
+
56
+ type: constr(regex='^ModelComparisonProperties$') = 'ModelComparisonProperties'
dragonfly_schema/model.py CHANGED
@@ -22,6 +22,7 @@ from .energy.properties import Room2DEnergyPropertiesAbridged, \
22
22
  from .radiance.properties import Room2DRadiancePropertiesAbridged, \
23
23
  StoryRadiancePropertiesAbridged, BuildingRadiancePropertiesAbridged, \
24
24
  ContextShadeRadiancePropertiesAbridged, ModelRadianceProperties
25
+ from .comparison.properties import Room2DComparisonProperties, ModelComparisonProperties
25
26
 
26
27
 
27
28
  class Room2DPropertiesAbridged(BaseModel):
@@ -36,6 +37,10 @@ class Room2DPropertiesAbridged(BaseModel):
36
37
  default=None
37
38
  )
38
39
 
40
+ comparison: Room2DComparisonProperties = Field(
41
+ default=None
42
+ )
43
+
39
44
 
40
45
  class Room2D(IDdBaseModel):
41
46
 
@@ -398,6 +403,10 @@ class ModelProperties(BaseModel):
398
403
  default=None
399
404
  )
400
405
 
406
+ comparison: ModelComparisonProperties = Field(
407
+ default=None
408
+ )
409
+
401
410
 
402
411
  class Model(IDdBaseModel):
403
412
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dragonfly-schema
3
- Version: 1.13.1
3
+ Version: 1.14.0
4
4
  Summary: Dragonfly Data-Model Objects
5
5
  Home-page: https://github.com/ladybug-tools/dragonfly-schema
6
6
  Author: Ladybug Tools
@@ -1,16 +1,18 @@
1
1
  dragonfly_schema/__init__.py,sha256=Cp-YAOlfQuotiRooL-u9oPbSK_C4xBDYQUhlA67qxyI,36
2
- dragonfly_schema/model.py,sha256=p6bVnJ5OJ3njUzp12vURBDvZOISq6ps9h2-iVa7te9o,18114
2
+ dragonfly_schema/model.py,sha256=USQuUKjbs-X0s1Mwj-T18AEWetmH6tldwZS-rJXgDZA,18362
3
3
  dragonfly_schema/roof.py,sha256=A4cYdKrx01lqlBrPzAOwAO4jtEh9JdD46tB9wSW2p6w,746
4
4
  dragonfly_schema/shading_parameter.py,sha256=WI9XPX3eVXhIutvE_AD1ozJ4QxH85E3Frv9SKsIzCl8,3121
5
5
  dragonfly_schema/skylight_parameter.py,sha256=4uxsAHHEbpfZYndIw2KcQ9AJXU7AJcRZWo7up65vC2c,3137
6
6
  dragonfly_schema/window_parameter.py,sha256=nC1Q1E82sNjPLcsHOwZ0xh011NylLotmkCX12AFc_74,10871
7
+ dragonfly_schema/comparison/__init__.py,sha256=3JoPhHkbxdrNFp0vfU8QX_HGYzPQhV8LSgVL1z7W09g,66
8
+ dragonfly_schema/comparison/properties.py,sha256=H-nVUVhvMtKAeqpRlgDpLDzrxFfuaMLp87FJUrB4TDQ,2197
7
9
  dragonfly_schema/energy/__init__.py,sha256=lLuzq9Sm9LUrW6VpOYxfS0Q_rXzOJoPDfzlxA3eFq2M,55
8
10
  dragonfly_schema/energy/properties.py,sha256=d_0hPXWifkFSCXaIbOD0OFc4-pYPcGERUEnINz5q-Jw,9828
9
11
  dragonfly_schema/radiance/__init__.py,sha256=ok8w16ru1XXBUVjdghvNvwwXGPVSKKpHU-nmj4mf3IU,57
10
12
  dragonfly_schema/radiance/gridpar.py,sha256=ZQTnEdN1vmSsa2QMxfUdebg3cMnu6VvfcluiP11xHOs,4809
11
13
  dragonfly_schema/radiance/properties.py,sha256=Q_O_7fJohdtv5uwHTCZp1W67LoNUaZ45GB6GK7zKK4Y,3405
12
- dragonfly_schema-1.13.1.dist-info/LICENSE,sha256=XfAFIvGuzrC7DEE82mZyAJX4l2ND-i7fICCCMiXBDZw,1070
13
- dragonfly_schema-1.13.1.dist-info/METADATA,sha256=ZTRf6vl6e-j6KQ2ixk1l_DOPBzTLzODAEJ7fpGxsu5M,1943
14
- dragonfly_schema-1.13.1.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
15
- dragonfly_schema-1.13.1.dist-info/top_level.txt,sha256=FOvFqYP_bZgcwNtIIgvUZjC-LuQGBEms5zW4nkiclZ0,17
16
- dragonfly_schema-1.13.1.dist-info/RECORD,,
14
+ dragonfly_schema-1.14.0.dist-info/LICENSE,sha256=XfAFIvGuzrC7DEE82mZyAJX4l2ND-i7fICCCMiXBDZw,1070
15
+ dragonfly_schema-1.14.0.dist-info/METADATA,sha256=mAd64KwP2vZ9Ep9dz45bGzVzg3xmzqeixKXfw3DgTjM,1943
16
+ dragonfly_schema-1.14.0.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
17
+ dragonfly_schema-1.14.0.dist-info/top_level.txt,sha256=FOvFqYP_bZgcwNtIIgvUZjC-LuQGBEms5zW4nkiclZ0,17
18
+ dragonfly_schema-1.14.0.dist-info/RECORD,,