mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 02:49:12 +00:00
black .
This commit is contained in:
@@ -440,7 +440,7 @@ def add_annotation(
|
||||
drawing_tool.show_decorations()
|
||||
obj = drawing_tool.create_annotation_object(drawing, object_type)
|
||||
element = ifc.get_entity(obj)
|
||||
if not element: # Brand new annotation
|
||||
if not element: # Brand new annotation
|
||||
relating_type_rep = drawing_tool.get_annotation_representation(relating_type) if relating_type else None
|
||||
element = drawing_tool.run_root_assign_class(
|
||||
obj=obj,
|
||||
|
||||
@@ -117,8 +117,7 @@ def switch_representation(
|
||||
representation: ifcopenshell.entity_instance,
|
||||
apply_openings: bool = True,
|
||||
) -> None:
|
||||
"""Switch obj representation (even if not yet assigned to that object. See #2766.)
|
||||
"""
|
||||
"""Switch obj representation (even if not yet assigned to that object. See #2766.)"""
|
||||
if not geometry.get_object_data(obj) and geometry.is_text_literal(representation):
|
||||
return
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@ class Txt(Console):
|
||||
|
||||
|
||||
class Json(Reporter):
|
||||
def __init__(self, ids: Ids,hide_skipped = False):
|
||||
def __init__(self, ids: Ids, hide_skipped=False):
|
||||
super().__init__(ids)
|
||||
self.results = Results()
|
||||
self.results["hide_skipped"] = hide_skipped
|
||||
@@ -462,7 +462,7 @@ class Html(Json):
|
||||
requirement["total_omitted_passes"] = total_passed_entities - self.entity_limit
|
||||
requirement["has_omitted_passes"] = total_passed_entities > self.entity_limit
|
||||
requirement["instructions"] = requirement["metadata"].get("@instructions")
|
||||
|
||||
|
||||
def limit_entities(self, entities):
|
||||
if len(entities) > self.entity_limit:
|
||||
if entities[0]["element_type"]:
|
||||
|
||||
Reference in New Issue
Block a user