v1.0.0-rc.81
This commit is contained in:
@@ -34,8 +34,12 @@ void HDF5DataFilePluginMX::OpenFile(HDF5File &data_file, const DataMessage &msg)
|
||||
profile_radius.reserve(RESERVE_IMAGES);
|
||||
b_factor.reserve(RESERVE_IMAGES);
|
||||
indexed_lattice.reserve(9 * RESERVE_IMAGES);
|
||||
spot_count_rings.reserve(RESERVE_IMAGES);
|
||||
resolution_estimate.reserve(RESERVE_IMAGES);
|
||||
|
||||
spot_count_total.reserve(RESERVE_IMAGES);
|
||||
spot_count_ice.reserve(RESERVE_IMAGES);
|
||||
spot_count_indexed.reserve(RESERVE_IMAGES);
|
||||
spot_count_low_res.reserve(RESERVE_IMAGES);
|
||||
}
|
||||
|
||||
void HDF5DataFilePluginMX::Write(const DataMessage &msg, uint64_t image_number) {
|
||||
@@ -91,14 +95,23 @@ void HDF5DataFilePluginMX::Write(const DataMessage &msg, uint64_t image_number)
|
||||
if (msg.resolution_estimate.has_value())
|
||||
resolution_estimate[image_number] = msg.resolution_estimate.value();
|
||||
|
||||
if (msg.spot_count_ice_rings)
|
||||
spot_count_rings[image_number] = msg.spot_count_ice_rings.value();
|
||||
|
||||
if (msg.beam_corr_x)
|
||||
beam_corr_x[image_number] = msg.beam_corr_x.value();
|
||||
if (msg.beam_corr_y)
|
||||
beam_corr_y[image_number] = msg.beam_corr_y.value();
|
||||
|
||||
if (msg.spot_count)
|
||||
spot_count_total[image_number] = msg.spot_count.value();
|
||||
|
||||
if (msg.spot_count_ice_rings)
|
||||
spot_count_ice[image_number] = msg.spot_count_ice_rings.value();
|
||||
|
||||
if (msg.spot_count_low_res)
|
||||
spot_count_low_res[image_number] = msg.spot_count_low_res.value();
|
||||
|
||||
if (msg.spot_count_indexed)
|
||||
spot_count_indexed[image_number] = msg.spot_count_indexed.value();
|
||||
|
||||
if (msg.indexing_lattice) {
|
||||
auto tmp = msg.indexing_lattice->GetVector();
|
||||
|
||||
@@ -126,8 +139,15 @@ void HDF5DataFilePluginMX::WriteFinal(HDF5File &data_file) {
|
||||
|
||||
if (!strong_pixel_count.empty())
|
||||
data_file.SaveVector("/entry/MX/strongPixels", strong_pixel_count.vec());
|
||||
if (!spot_count_rings.empty())
|
||||
data_file.SaveVector("/entry/MX/nPeaksRingFiltered", spot_count_rings.vec());
|
||||
|
||||
if (!spot_count_ice.empty())
|
||||
data_file.SaveVector("/entry/MX/peakCountIceRingRes", spot_count_ice.vec());
|
||||
if (!spot_count_indexed.empty())
|
||||
data_file.SaveVector("/entry/MX/peakCountIndexed", spot_count_indexed.vec());
|
||||
if (!spot_count_low_res.empty())
|
||||
data_file.SaveVector("/entry/MX/peakCountLowRes", spot_count_low_res.vec());
|
||||
if (!spot_count_total.empty())
|
||||
data_file.SaveVector("/entry/MX/peakCountUnfiltered", spot_count_total.vec());
|
||||
|
||||
if (!indexed.empty())
|
||||
data_file.SaveVector("/entry/MX/imageIndexed", indexed.vec());
|
||||
|
||||
Reference in New Issue
Block a user