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

Method version

src/bcf/bcf/v2/bcfxml.py:53–61  ·  view source on GitHub ↗

Bcf Version.

(self)

Source from the content-addressed store, hash-verified

51
52 @property
53 def version(self) -> mdl.Version:
54 """Bcf Version."""
55 if not self._version:
56 self._version = (
57 self._xml_handler.parse(self._zip_file.read("bcf.version"), mdl.Version)
58 if self._zip_file
59 else mdl.Version(version_id="2.1")
60 )
61 return self._version
62
63 @version.setter
64 def version(self, value: mdl.Version) -> None:

Callers 1

__init__.pyFile · 0.45

Calls 3

VersionMethod · 0.80
parseMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected