jfjoch_writer: Reserve all metadata vectors when opening file
Some checks failed
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 12m30s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 13m30s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 14m10s
Build Packages / Generate python client (push) Successful in 12s
Build Packages / build:rpm (rocky8) (push) Successful in 14m14s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 14m23s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 14m56s
Build Packages / Build documentation (push) Successful in 39s
Build Packages / build:rpm (rocky9) (push) Successful in 14m58s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 15m12s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m29s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 8m44s
Build Packages / Unit tests (push) Failing after 3h12m6s
Some checks failed
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 12m30s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 13m30s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 14m10s
Build Packages / Generate python client (push) Successful in 12s
Build Packages / build:rpm (rocky8) (push) Successful in 14m14s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 14m23s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 14m56s
Build Packages / Build documentation (push) Successful in 39s
Build Packages / build:rpm (rocky9) (push) Successful in 14m58s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 15m12s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m29s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 8m44s
Build Packages / Unit tests (push) Failing after 3h12m6s
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
|
||||
#include "HDF5DataFilePluginAzInt.h"
|
||||
|
||||
#define RESERVE_IMAGES 10000
|
||||
|
||||
HDF5DataFilePluginAzInt::HDF5DataFilePluginAzInt(const StartMessage &message) :
|
||||
az_int_bin_to_q(message.az_int_bin_to_q),
|
||||
az_int_bin_to_two_theta(message.az_int_bin_to_two_theta),
|
||||
@@ -13,7 +11,7 @@ azimuthal_bins(message.az_int_phi_bin_count.value_or(1)),
|
||||
q_bins(message.az_int_q_bin_count.value_or(1)){
|
||||
}
|
||||
|
||||
void HDF5DataFilePluginAzInt::OpenFile(HDF5File &data_file, const DataMessage &msg) {
|
||||
void HDF5DataFilePluginAzInt::OpenFile(HDF5File &data_file, const DataMessage &msg, size_t images_per_file) {
|
||||
if (az_int_bin_to_q.empty() || q_bins <= 0 || azimuthal_bins <= 0)
|
||||
return;
|
||||
|
||||
@@ -26,7 +24,7 @@ void HDF5DataFilePluginAzInt::OpenFile(HDF5File &data_file, const DataMessage &m
|
||||
if (!az_int_bin_to_phi.empty())
|
||||
data_file.SaveVector("/entry/azint/bin_to_phi", az_int_bin_to_phi, dim);
|
||||
|
||||
az_int_image.reserve(RESERVE_IMAGES * azimuthal_bins * q_bins);
|
||||
az_int_image.reserve(images_per_file * azimuthal_bins * q_bins);
|
||||
az_int_image.resize(msg.number * azimuthal_bins * q_bins);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user