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

Method _save_version

src/bcf/bcf/v2/bcfxml.py:212–216  ·  view source on GitHub ↗
(self, destination_zip: ZipFileInterface)

Source from the content-addressed store, hash-verified

210 destination_zip.writestr(self.project_info.extension_schema, self.extension_schema)
211
212 def _save_version(self, destination_zip: ZipFileInterface) -> None:
213 if not self._version and self._zip_file:
214 destination_zip.writestr("bcf.version", self._zip_file.read("bcf.version"))
215 else:
216 self._save_xml(destination_zip, "bcf.version", self.version)
217
218 def _smart_save_xml(self, destination_zip: ZipFileInterface, item: Any, target: str) -> None:
219 if item:

Callers 1

saveMethod · 0.95

Calls 3

_save_xmlMethod · 0.95
writestrMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected