From 08bba92b2e52520acf821eb73aaf6594cece22a7 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 23 Sep 2024 17:40:58 +0500 Subject: [PATCH] fix opening ifc files with streaming #5457 --- src/ifcopenshell-python/ifcopenshell/stream.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/stream.py b/src/ifcopenshell-python/ifcopenshell/stream.py index 6125e08647..79d13a6e04 100644 --- a/src/ifcopenshell-python/ifcopenshell/stream.py +++ b/src/ifcopenshell-python/ifcopenshell/stream.py @@ -86,6 +86,8 @@ try: return (int(items[0]), str(items[1]), items[2]) class stream(file): + schema: ifcopenshell.util.schema.IFC_SCHEMA = "IFC4" + def __init__(self, filepath: str): self.wrapped_data = None self.history_size = 64