From b0eaf23d2cbe1a0ceb3240e1fcc279bc25db949a Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 4 Sep 2024 18:29:51 +0500 Subject: [PATCH] Fix missing serializer_settings argument #5299 --- src/ifcopenshell-python/ifcopenshell/geom/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/geom/main.py b/src/ifcopenshell-python/ifcopenshell/geom/main.py index 22bc31ca94..1952ea1e01 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/main.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/main.py @@ -446,6 +446,7 @@ def iterate( exclude: Optional[Union[list[entity_instance], list[str]]] = None, with_progress: Literal[False] = False, cache: Optional[serializers.hdf5] = None, + serializer_settings: Optional[serializer_settings] = None, geometry_library: GEOMETRY_LIBRARY = "opencascade", ) -> Generator[IteratorOutput, None, None]: ... @overload @@ -457,6 +458,7 @@ def iterate( exclude: Optional[Union[list[entity_instance], list[str]]] = None, with_progress: Literal[True] = True, cache: Optional[serializers.hdf5] = None, + serializer_settings: Optional[serializer_settings] = None, geometry_library: GEOMETRY_LIBRARY = "opencascade", ) -> Generator[tuple[int, IteratorOutput], None, None]: ... @overload @@ -468,6 +470,7 @@ def iterate( exclude: Optional[Union[list[entity_instance], list[str]]] = None, with_progress: bool = False, cache: Optional[serializers.hdf5] = None, + serializer_settings: Optional[serializer_settings] = None, geometry_library: GEOMETRY_LIBRARY = "opencascade", ) -> Generator[Union[IteratorOutput, tuple[int, IteratorOutput]], None, None]: ... def iterate( @@ -478,11 +481,12 @@ def iterate( exclude: Optional[Union[list[entity_instance], list[str]]] = None, with_progress: bool = False, cache: Optional[serializers.hdf5] = None, + serializer_settings: Optional[serializer_settings] = None, geometry_library: GEOMETRY_LIBRARY = "opencascade", ) -> Generator[Union[IteratorOutput, tuple[int, IteratorOutput]], None, None]: it = iterator(settings, file_or_filename, num_threads, include, exclude, geometry_library) if cache: - hdf5_cache = serializers.hdf5(cache, settings) + hdf5_cache = serializers.hdf5(cache, settings, serializer_settings) it.set_cache(hdf5_cache) yield from consume_iterator(it, with_progress=with_progress)