From 3d13b6468dc2b57d47cc64b4df4a745f60b16a0b Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 12 Oct 2023 10:37:44 +0200 Subject: [PATCH] Use schema_identifier for schema and express rule validation. See #3126 --- src/ifcopenshell-python/ifcopenshell/entity_instance.py | 3 +++ src/ifcopenshell-python/ifcopenshell/validate.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/entity_instance.py b/src/ifcopenshell-python/ifcopenshell/entity_instance.py index 62f1a03dab..f624effa1e 100644 --- a/src/ifcopenshell-python/ifcopenshell/entity_instance.py +++ b/src/ifcopenshell-python/ifcopenshell/entity_instance.py @@ -27,6 +27,9 @@ import numbers import itertools import operator import functools +import subprocess +import sys +import time from . import ifcopenshell_wrapper from . import settings diff --git a/src/ifcopenshell-python/ifcopenshell/validate.py b/src/ifcopenshell-python/ifcopenshell/validate.py index bd1b8cfd66..debe8e9d09 100644 --- a/src/ifcopenshell-python/ifcopenshell/validate.py +++ b/src/ifcopenshell-python/ifcopenshell/validate.py @@ -328,7 +328,7 @@ def validate(f, logger, express_rules=False): log_internal_cpp_errors(filename, logger) - schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(f.schema) + schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(f.schema_identifier) for inst in f: if hasattr(logger, "set_state"): logger.set_state('instance', inst)