Skip to content

volume: add data_file_saver_generator function: geneator to dump 'on the fly' frames

payno requested to merge update_tomoscan_for_nabu_cast_volume into master

The goal of this PR is provide features to loading volumes in memory when casting a volume (for example) and allows users to have a generic code.

So the idea is to provide something easy to browse slice and dump them like:

data = ... # volume to be saved
output_volume = XXXVolume()  # instance of VolumeBase
for slice, frame_save in zip(data, output_volume.data_file_saver_generator(...):
    frame_save[:] = slice

It also implements get_volume_shape as a util and rework multitiff to allow the feature (basically append was not properly used...)

Edited by payno

Merge request reports

Loading