Lima: correct way to get the saving_frame_per_file
@claustre @debionne Which of these two is the correct way of getting the number of frames saved per file? I see both in bliss/data/nodes/lima.py
:
def image_filenames(ref_data, image_nbs, last_image_saved=None):
overwrite_policy = ref_data.get("saving_overwrite", "ABORT").lower()
if overwrite_policy == "multiset":
nb_image_per_file = ref_data["acq_nb_frames"]
else:
nb_image_per_file = ref_data.get("saving_frame_per_file", 1)
class LimaImageChannelDataNode(DataNode):
@property
def images_per_file(self):
return self.ref_data[0].get("saving_frame_per_file")
Then there is this inconsistency:
overwrite_policy = final_ref_data["overwritePolicy"].lower()
if overwrite_policy == "multiset":
which does not match with overwrite_policy = ref_data.get("saving_overwrite", "ABORT").lower()
.
On top of that, neither overwritePolicy
nor saving_overwrite
occur anywhere else in the Bliss code.