Method
_save_bitmaps
(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( |
Tested by
no test coverage detected