dragonfly-doe2 0.12.13__tar.gz → 0.12.14__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.13 → dragonfly_doe2-0.12.14}/PKG-INFO +1 -1
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2/properties/model.py +7 -10
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2/properties/room2d.py +1 -1
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2.egg-info/PKG-INFO +1 -1
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/CODE_OF_CONDUCT.md +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/CONTRIBUTING.md +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/LICENSE +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/MANIFEST.in +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/README.md +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dev-requirements.txt +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2/__init__.py +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2/__main__.py +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2/_extend_dragonfly.py +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2/cli/__init__.py +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2/cli/translate.py +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2/properties/__init__.py +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2/writer.py +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2.egg-info/SOURCES.txt +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2.egg-info/dependency_links.txt +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2.egg-info/entry_points.txt +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2.egg-info/requires.txt +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/dragonfly_doe2.egg-info/top_level.txt +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/requirements.txt +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/setup.cfg +0 -0
- {dragonfly_doe2-0.12.13 → dragonfly_doe2-0.12.14}/setup.py +0 -0
|
@@ -19,7 +19,7 @@ class ModelDoe2Properties(object):
|
|
|
19
19
|
ERROR_MAP = {
|
|
20
20
|
'030101': 'check_room_2d_floor_plate_vertex_count',
|
|
21
21
|
'030102': 'check_no_room_2d_floor_plate_holes',
|
|
22
|
-
'030103': '
|
|
22
|
+
'030103': 'check_story_floor_plates'
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
def __init__(self, host):
|
|
@@ -72,7 +72,7 @@ class ModelDoe2Properties(object):
|
|
|
72
72
|
# perform checks that are specific to DOE-2
|
|
73
73
|
msgs.append(self.check_room_2d_floor_plate_vertex_count(False, detailed))
|
|
74
74
|
msgs.append(self.check_no_room_2d_floor_plate_holes(False, detailed))
|
|
75
|
-
msgs.append(self.
|
|
75
|
+
msgs.append(self.check_story_floor_plates(tol, False, detailed))
|
|
76
76
|
|
|
77
77
|
# output a final report of errors or raise an exception
|
|
78
78
|
full_msgs = [msg for msg in msgs if msg]
|
|
@@ -134,7 +134,7 @@ class ModelDoe2Properties(object):
|
|
|
134
134
|
# perform checks for specific doe-2 simulation rules
|
|
135
135
|
msgs.append(self.check_room_2d_floor_plate_vertex_count(False, detailed))
|
|
136
136
|
msgs.append(self.check_no_room_2d_floor_plate_holes(False, detailed))
|
|
137
|
-
msgs.append(self.
|
|
137
|
+
msgs.append(self.check_story_floor_plates(tol, False, detailed))
|
|
138
138
|
# output a final report of errors or raise an exception
|
|
139
139
|
full_msgs = [msg for msg in msgs if msg]
|
|
140
140
|
if detailed:
|
|
@@ -207,17 +207,14 @@ class ModelDoe2Properties(object):
|
|
|
207
207
|
raise ValueError(full_msg)
|
|
208
208
|
return full_msg
|
|
209
209
|
|
|
210
|
-
def
|
|
210
|
+
def check_story_floor_plates(
|
|
211
211
|
self, tolerance=None, raise_exception=True, detailed=False):
|
|
212
|
-
"""Check
|
|
212
|
+
"""Check Story floor plates for courtyards and that they are less than 120 vertices.
|
|
213
213
|
|
|
214
|
-
EQuest currently has no way to represent
|
|
214
|
+
EQuest currently has no way to represent courtyards so, if the issue
|
|
215
215
|
is not addressed, the courtyards will simply be removed as part of the
|
|
216
216
|
process of exporting to an INP file.
|
|
217
217
|
|
|
218
|
-
This method will also perform checks for whether the story floor plate
|
|
219
|
-
polygon exceeds the DOE-2 limit of 120 vertices.
|
|
220
|
-
|
|
221
218
|
Args:
|
|
222
219
|
tolerance: The tolerance to be used when joining the Room2D floor
|
|
223
220
|
plates together into a Story floor plate. If None, the Model
|
|
@@ -279,7 +276,7 @@ class ModelDoe2Properties(object):
|
|
|
279
276
|
msg = {
|
|
280
277
|
'type': 'ValidationError',
|
|
281
278
|
'code': '030101',
|
|
282
|
-
'error_type': '
|
|
279
|
+
'error_type': 'Floor Plate Exceeds Maximum Vertex Count',
|
|
283
280
|
'extension_type': 'DOE2',
|
|
284
281
|
'element_type': 'Room2D',
|
|
285
282
|
'element_id': [r.identifier for r in story.room_2ds],
|
|
@@ -143,7 +143,7 @@ class Room2DDoe2Properties(object):
|
|
|
143
143
|
raise ValueError(msg)
|
|
144
144
|
full_msg = self.host._validation_message_child(
|
|
145
145
|
msg, self.host, detailed, '030101', extension='DOE2',
|
|
146
|
-
error_type='
|
|
146
|
+
error_type='Floor Plate Exceeds Maximum Vertex Count')
|
|
147
147
|
if detailed:
|
|
148
148
|
return [full_msg]
|
|
149
149
|
if raise_exception:
|
|
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.13 → dragonfly_doe2-0.12.14}/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
|