(self, video, row_identifier, col_identifier, ext='mp4')
| 255 | return filename |
| 256 | |
| 257 | def save_video(self, video, row_identifier, col_identifier, ext='mp4'): |
| 258 | kwargs = dict(fps=2, macro_block_size=None) |
| 259 | if isinstance(video, dict): |
| 260 | frames = video.pop('video') |
| 261 | kwargs.update(video) |
| 262 | else: |
| 263 | frames = video |
| 264 | filename = self.get_asset_filename(row_identifier, col_identifier, ext) |
| 265 | imageio.mimwrite(filename, frames, **kwargs) |
| 266 | return filename |
| 267 | |
| 268 | def canonize_link(self, filetype, obj, row_identifier=None, col_identifier=None): |
| 269 | if filetype == 'file': |
no test coverage detected