mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
black .
This commit is contained in:
@@ -43,7 +43,7 @@ class Patcher:
|
|||||||
i = 0
|
i = 0
|
||||||
for element in self.file.by_type(ifc_class):
|
for element in self.file.by_type(ifc_class):
|
||||||
data = "-".join([str(a) for a in element])
|
data = "-".join([str(a) for a in element])
|
||||||
if (unique := uniques.get(data, None)):
|
if unique := uniques.get(data, None):
|
||||||
ifcopenshell.util.element.replace_element(element, unique)
|
ifcopenshell.util.element.replace_element(element, unique)
|
||||||
self.file.remove(element)
|
self.file.remove(element)
|
||||||
i += 1
|
i += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user