MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / validate

Function validate

src/ifcbimtester/bimtester/util.py:35–44  ·  view source on GitHub ↗
(ifc)

Source from the content-addressed store, hash-verified

33
34
35def validate(ifc):
36 errors = []
37 logger = ifcopenshell.validate.json_logger()
38 try:
39 ifcopenshell.validate.validate(ifc, logger)
40 if logger.statements:
41 for statement in logger.statements:
42 errors.append(f"{json.dumps(statement, default=str)}")
43 except RuntimeError as error:
44 assert False, str(error)
45
46
47def assert_guid(ifc, guid):

Callers

nothing calls this directly

Calls 2

validateMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected