dragonfly-doe2 0.12.12__tar.gz → 0.12.13__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.12 → dragonfly_doe2-0.12.13}/PKG-INFO +1 -1
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2/properties/model.py +23 -2
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2.egg-info/PKG-INFO +1 -1
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/CODE_OF_CONDUCT.md +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/CONTRIBUTING.md +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/LICENSE +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/MANIFEST.in +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/README.md +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dev-requirements.txt +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2/__init__.py +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2/__main__.py +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2/_extend_dragonfly.py +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2/cli/__init__.py +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2/cli/translate.py +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2/properties/__init__.py +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2/properties/room2d.py +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2/writer.py +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2.egg-info/SOURCES.txt +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2.egg-info/dependency_links.txt +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2.egg-info/entry_points.txt +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2.egg-info/requires.txt +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/dragonfly_doe2.egg-info/top_level.txt +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/requirements.txt +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/setup.cfg +0 -0
- {dragonfly_doe2-0.12.12 → dragonfly_doe2-0.12.13}/setup.py +0 -0
|
@@ -215,6 +215,9 @@ class ModelDoe2Properties(object):
|
|
|
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
|
+
|
|
218
221
|
Args:
|
|
219
222
|
tolerance: The tolerance to be used when joining the Room2D floor
|
|
220
223
|
plates together into a Story floor plate. If None, the Model
|
|
@@ -236,8 +239,10 @@ class ModelDoe2Properties(object):
|
|
|
236
239
|
for story in bldg.unique_stories:
|
|
237
240
|
floor_geos = [room.floor_geometry for room in story.room_2ds]
|
|
238
241
|
joined_geos = _grouped_floor_boundary(floor_geos, tolerance)
|
|
239
|
-
c_count = 0
|
|
242
|
+
c_count, vert_len = 0, None
|
|
240
243
|
for geo in joined_geos:
|
|
244
|
+
if len(geo.boundary) > 120:
|
|
245
|
+
vert_len = len(geo.boundary)
|
|
241
246
|
if geo.has_holes:
|
|
242
247
|
for hole in geo.holes:
|
|
243
248
|
try:
|
|
@@ -266,10 +271,26 @@ class ModelDoe2Properties(object):
|
|
|
266
271
|
'message': msg
|
|
267
272
|
}
|
|
268
273
|
story_msgs.append(msg)
|
|
274
|
+
if vert_len is not None:
|
|
275
|
+
msg = 'Story "{}" has a floor plate with {} vertices, which is more ' \
|
|
276
|
+
'than the maximum 120 vertices supported by DOE-2.'.format(
|
|
277
|
+
story.display_name, vert_len)
|
|
278
|
+
if detailed:
|
|
279
|
+
msg = {
|
|
280
|
+
'type': 'ValidationError',
|
|
281
|
+
'code': '030101',
|
|
282
|
+
'error_type': 'Room Exceeds Maximum Vertex Count',
|
|
283
|
+
'extension_type': 'DOE2',
|
|
284
|
+
'element_type': 'Room2D',
|
|
285
|
+
'element_id': [r.identifier for r in story.room_2ds],
|
|
286
|
+
'element_name': [r.display_name for r in story.room_2ds],
|
|
287
|
+
'message': msg
|
|
288
|
+
}
|
|
289
|
+
story_msgs.append(msg)
|
|
269
290
|
if detailed:
|
|
270
291
|
return story_msgs
|
|
271
292
|
if story_msgs != []:
|
|
272
|
-
msg = 'The following Stories have
|
|
293
|
+
msg = 'The following Stories have issues with their floor plates' \
|
|
273
294
|
':\n{}'.format('\n'.join(story_msgs))
|
|
274
295
|
if raise_exception:
|
|
275
296
|
raise ValueError(msg)
|
|
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.12 → dragonfly_doe2-0.12.13}/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
|