dragonfly-doe2 0.12.3__tar.gz → 0.12.4__tar.gz
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.
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/PKG-INFO +1 -1
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2/properties/model.py +34 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2.egg-info/PKG-INFO +1 -1
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/CODE_OF_CONDUCT.md +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/CONTRIBUTING.md +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/LICENSE +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/MANIFEST.in +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/README.md +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dev-requirements.txt +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2/__init__.py +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2/__main__.py +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2/_extend_dragonfly.py +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2/cli/__init__.py +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2/cli/translate.py +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2/properties/__init__.py +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2/properties/room2d.py +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2/writer.py +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2.egg-info/SOURCES.txt +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2.egg-info/dependency_links.txt +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2.egg-info/entry_points.txt +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2.egg-info/requires.txt +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2.egg-info/top_level.txt +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/requirements.txt +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/setup.cfg +0 -0
- {dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/setup.py +0 -0
|
@@ -74,6 +74,37 @@ class ModelDoe2Properties(object):
|
|
|
74
74
|
raise ValueError(full_msg)
|
|
75
75
|
return full_msg
|
|
76
76
|
|
|
77
|
+
def check_generic(self, raise_exception=True, detailed=False):
|
|
78
|
+
"""Check generic of the aspects of the Model DOE-2 properties.
|
|
79
|
+
|
|
80
|
+
This includes checks for everything except holes in floor plates and
|
|
81
|
+
courtyard stories.
|
|
82
|
+
|
|
83
|
+
Args:
|
|
84
|
+
raise_exception: Boolean to note whether a ValueError should be raised
|
|
85
|
+
if any errors are found. If False, this method will simply
|
|
86
|
+
return a text string with all errors that were found.
|
|
87
|
+
detailed: Boolean for whether the returned object is a detailed list of
|
|
88
|
+
dicts with error info or a string with a message. (Default: False).
|
|
89
|
+
|
|
90
|
+
Returns:
|
|
91
|
+
A text string with all errors that were found or a list if detailed is True.
|
|
92
|
+
This string (or list) will be empty if no errors were found.
|
|
93
|
+
"""
|
|
94
|
+
# set up defaults to ensure the method runs correctly
|
|
95
|
+
detailed = False if raise_exception else detailed
|
|
96
|
+
msgs = []
|
|
97
|
+
# perform checks for specific energy simulation rules
|
|
98
|
+
msgs.append(self.check_room_2d_floor_plate_vertex_count(False, detailed))
|
|
99
|
+
# output a final report of errors or raise an exception
|
|
100
|
+
full_msgs = [msg for msg in msgs if msg]
|
|
101
|
+
if detailed:
|
|
102
|
+
return [m for msg in full_msgs for m in msg]
|
|
103
|
+
full_msg = '\n'.join(full_msgs)
|
|
104
|
+
if raise_exception and len(full_msgs) != 0:
|
|
105
|
+
raise ValueError(full_msg)
|
|
106
|
+
return full_msg
|
|
107
|
+
|
|
77
108
|
def check_all(self, raise_exception=True, detailed=False):
|
|
78
109
|
"""Check all of the aspects of the Model DOE-2 properties.
|
|
79
110
|
|
|
@@ -91,8 +122,11 @@ class ModelDoe2Properties(object):
|
|
|
91
122
|
# set up defaults to ensure the method runs correctly
|
|
92
123
|
detailed = False if raise_exception else detailed
|
|
93
124
|
msgs = []
|
|
125
|
+
tol = self.host.tolerance
|
|
94
126
|
# perform checks for specific energy simulation rules
|
|
95
127
|
msgs.append(self.check_room_2d_floor_plate_vertex_count(False, detailed))
|
|
128
|
+
msgs.append(self.check_no_room_2d_floor_plate_holes(False, detailed))
|
|
129
|
+
msgs.append(self.check_no_story_courtyards(tol, False, detailed))
|
|
96
130
|
# output a final report of errors or raise an exception
|
|
97
131
|
full_msgs = [msg for msg in msgs if msg]
|
|
98
132
|
if detailed:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dragonfly_doe2-0.12.3 → dragonfly_doe2-0.12.4}/dragonfly_doe2.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|