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

Method _save_bitmaps

src/bcf/bcf/v2/visinfo.py:155–164  ·  view source on GitHub ↗
(self, bcf_zip: ZipFileInterface, topic_dir: str)

Source from the content-addressed store, hash-verified

153 )
154
155 def _save_bitmaps(self, bcf_zip: ZipFileInterface, topic_dir: str) -> None:
156 if not self.bitmaps:
157 return
158 if not (bitmaps_defs := self.visualization_info.bitmap):
159 return
160 for bitmap_def in bitmaps_defs:
161 if not (bitmap_name := bitmap_def.reference):
162 continue
163 if bitmap_name in self.bitmaps:
164 bcf_zip.writestr(f"{topic_dir}/{bitmap_name}", self.bitmaps[bitmap_name])
165
166 @classmethod
167 def create_new(

Callers 1

saveMethod · 0.95

Calls 1

writestrMethod · 0.45

Tested by

no test coverage detected