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

Method validate

src/ifctester/ifctester/ids.py:167–180  ·  view source on GitHub ↗
(
        self, ifc_file: ifcopenshell.file, should_filter_version: bool = False, filepath: Optional[str] = None
    )

Source from the content-addressed store, hash-verified

165 return get_schema().is_valid(filepath)
166
167 def validate(
168 self, ifc_file: ifcopenshell.file, should_filter_version: bool = False, filepath: Optional[str] = None
169 ) -> None:
170 if filepath:
171 self.filepath = filepath
172 self.filename = os.path.basename(filepath)
173 else:
174 self.filepath = self.filename = None
175 get_pset.cache_clear()
176 get_psets.cache_clear()
177 for specification in self.specifications:
178 specification.reset_status()
179 specification.check_ifc_version(ifc_file)
180 specification.validate(ifc_file, should_filter_version=should_filter_version)
181
182
183class Specification:

Callers 15

validateFunction · 0.45
step_implFunction · 0.45
import_ifcFunction · 0.45
__main__.pyFile · 0.45
openFunction · 0.45
from_stringFunction · 0.45
__call__Method · 0.45
__call__Method · 0.45
runFunction · 0.45
auditIfcFunction · 0.45
test_fileFunction · 0.45

Calls 2

reset_statusMethod · 0.80
check_ifc_versionMethod · 0.80

Tested by 4

runFunction · 0.36
test_fileFunction · 0.36
test_fileFunction · 0.36