Release 1.0.0_rc.9
This commit is contained in:
@@ -11,24 +11,24 @@
|
||||
#include "HDF5DataFilePluginXFEL.h"
|
||||
#include "HDF5DataFilePluginJUNGFRAU.h"
|
||||
#include "../include/spdlog/fmt/fmt.h"
|
||||
#include "HDF5NXmx.h"
|
||||
|
||||
HDF5DataFile::HDF5DataFile(const StartMessage &msg, uint64_t in_file_number) {
|
||||
file_number = in_file_number;
|
||||
|
||||
HDF5DataFile::HDF5DataFile(const std::string &in_filename,
|
||||
const std::vector<float>& in_rad_int_bin_to_q,
|
||||
int32_t in_image_low,
|
||||
size_t in_max_spots) {
|
||||
xpixel = 0;
|
||||
ypixel = 0;
|
||||
max_image_number = 0;
|
||||
nimages = 0;
|
||||
filename = in_filename;
|
||||
image_low = in_image_low;
|
||||
filename = HDF5Metadata::DataFileName(msg.file_prefix, file_number);
|
||||
image_low = file_number * msg.images_per_file;
|
||||
|
||||
tmp_filename = fmt::format("{}.tmp{:8x}", filename, std::chrono::system_clock::now().time_since_epoch().count());
|
||||
|
||||
plugins.emplace_back(std::make_unique<HDF5DataFilePluginJUNGFRAU>());
|
||||
plugins.emplace_back(std::make_unique<HDF5DataFilePluginAzInt>(in_rad_int_bin_to_q));
|
||||
plugins.emplace_back(std::make_unique<HDF5DataFilePluginAzInt>(msg.az_int_bin_to_q));
|
||||
plugins.emplace_back(std::make_unique<HDF5DataFilePluginXFEL>());
|
||||
plugins.emplace_back(std::make_unique<HDF5DataFilePluginMX>(in_max_spots));
|
||||
plugins.emplace_back(std::make_unique<HDF5DataFilePluginMX>(msg.max_spot_count));
|
||||
}
|
||||
|
||||
std::optional<HDF5DataFileStatistics> HDF5DataFile::Close() {
|
||||
@@ -62,6 +62,7 @@ std::optional<HDF5DataFileStatistics> HDF5DataFile::Close() {
|
||||
ret.max_image_number = max_image_number;
|
||||
ret.total_images = nimages;
|
||||
ret.filename = filename;
|
||||
ret.file_number = file_number + 1;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user