mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 05:46:51 +00:00
Optimise patch - lazy import toposort
to fix empty Optimise patch description in BlenderBIM
This commit is contained in:
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
from toposort import toposort_flatten as toposort
|
|
||||||
|
|
||||||
|
|
||||||
class Patcher:
|
class Patcher:
|
||||||
@@ -53,6 +52,8 @@ class Patcher:
|
|||||||
self.optimized_file = ifcopenshell.file(schema=self.file.schema)
|
self.optimized_file = ifcopenshell.file(schema=self.file.schema)
|
||||||
|
|
||||||
def patch(self):
|
def patch(self):
|
||||||
|
from toposort import toposort_flatten as toposort
|
||||||
|
|
||||||
def generate_instances_and_references():
|
def generate_instances_and_references():
|
||||||
"""
|
"""
|
||||||
Generator which yields an entity id and
|
Generator which yields an entity id and
|
||||||
|
|||||||
Reference in New Issue
Block a user