// Copyright (2019-2024) Paul Scherrer Institute #include "HDF5DataFilePluginResEstimation.h" void HDF5DataFilePluginResEstimation::OpenFile(HDF5File &data_file, const DataMessage &msg) {} void HDF5DataFilePluginResEstimation::Write(const DataMessage &msg, uint64_t image_number) { if (!msg.resolution_estimation) return; if (image_number >= res_estimation.size()) res_estimation.resize(image_number + 1); res_estimation[image_number] = msg.resolution_estimation.value(); } void HDF5DataFilePluginResEstimation::WriteFinal(HDF5File &data_file) { if (!res_estimation.empty()) data_file.SaveVector("/entry/res_estimation", res_estimation); }