black format

This commit is contained in:
Andrej730
2024-04-08 17:25:33 +05:00
parent 9474d17867
commit de5075aafe
+5 -4
View File
@@ -99,9 +99,12 @@ class Root(blenderbim.core.tool.Root):
if not element: if not element:
continue continue
if hasattr(element, "ConnectedTo") and element.ConnectedTo: if hasattr(element, "ConnectedTo") and element.ConnectedTo:
paths = [connection for connection in element.ConnectedTo if connection.is_a("IfcRelConnectsPathElements")] paths = [
connection for connection in element.ConnectedTo if connection.is_a("IfcRelConnectsPathElements")
]
for path in paths: for path in paths:
relationships[element] = {"type": "path", relationships[element] = {
"type": "path",
"related_connection_type": path.RelatedConnectionType, "related_connection_type": path.RelatedConnectionType,
"related_element": path.RelatedElement, "related_element": path.RelatedElement,
"related_priorities": path.RelatedPriorities, "related_priorities": path.RelatedPriorities,
@@ -236,7 +239,6 @@ class Root(blenderbim.core.tool.Root):
related_connection=data["related_connection_type"], related_connection=data["related_connection_type"],
) )
@classmethod @classmethod
def recreate_aggregate(cls, old_to_new): def recreate_aggregate(cls, old_to_new):
for old, new in old_to_new.items(): for old, new in old_to_new.items():
@@ -275,7 +277,6 @@ class Root(blenderbim.core.tool.Root):
related_obj=tool.Ifc.get_object(tool.Ifc.get_entity(obj)), related_obj=tool.Ifc.get_object(tool.Ifc.get_entity(obj)),
) )
@classmethod @classmethod
def run_geometry_add_representation( def run_geometry_add_representation(
cls, obj=None, context=None, ifc_representation_class=None, profile_set_usage=None cls, obj=None, context=None, ifc_representation_class=None, profile_set_usage=None