This commit is contained in:
Thomas Krijnen
2025-10-26 13:33:10 +01:00
parent 391a412e65
commit 6df5632f91
2 changed files with 6 additions and 3 deletions
@@ -339,7 +339,9 @@ class iterator(ifcopenshell_wrapper.Iterator):
geometry_library, self.settings, file_or_filename, include_or_exclude, include is not None, num_threads
)
else:
self.this = ifcopenshell_wrapper.construct_iterator(geometry_library, self.settings, file_or_filename, num_threads)
self.this = ifcopenshell_wrapper.construct_iterator(
geometry_library, self.settings, file_or_filename, num_threads
)
if has_occ:
@@ -19,6 +19,7 @@ from typing import get_args
fn = os.path.join(os.path.dirname(__file__), "fixtures/ColumnPSetsOfSets.ifc")
class TestGeomSettings:
def test_settings(self):
settings = ifcopenshell.geom.settings()
@@ -198,8 +199,8 @@ def test_iterator():
with_or_without_threads = [[], [multiprocessing.cpu_count()]]
includes = [
{},
{'include': ['IfcColumn']},
{'include': [file_or_filename[1].by_type('IfcColumn')[0]]},
{"include": ["IfcColumn"]},
{"include": [file_or_filename[1].by_type("IfcColumn")[0]]},
]
for args in itertools.product(file_or_filename, with_or_without_threads, includes):
kwargs = functools.reduce(operator.or_, (a for a in args if isinstance(a, dict)))