jfjoch_process: Adapt behavior to write file with processing results and link to original images (to be tested)
Build Packages / Unit tests (push) Has been cancelled
Build Packages / build:rpm (rocky8_nocuda) (push) Has been cancelled
Build Packages / build:rpm (rocky9_nocuda) (push) Has been cancelled
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Has been cancelled
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Has been cancelled
Build Packages / build:rpm (rocky8_sls9) (push) Has been cancelled
Build Packages / build:rpm (rocky9_sls9) (push) Has been cancelled
Build Packages / DIALS test (push) Has been cancelled
Build Packages / XDS test (neggia plugin) (push) Has been cancelled
Build Packages / Generate python client (push) Has been cancelled
Build Packages / Build documentation (push) Has been cancelled
Build Packages / build:rpm (rocky8) (push) Has been cancelled
Build Packages / build:rpm (rocky9) (push) Has been cancelled
Build Packages / build:rpm (ubuntu2204) (push) Has been cancelled
Build Packages / build:rpm (ubuntu2404) (push) Has been cancelled
Build Packages / XDS test (durin plugin) (push) Has been cancelled
Build Packages / XDS test (JFJoch plugin) (push) Has been cancelled
Build Packages / Create release (push) Has been cancelled

This commit is contained in:
2026-05-08 20:06:41 +02:00
parent 1b8c528ed2
commit 0503ef0271
+16 -9
View File
@@ -376,15 +376,6 @@ int main(int argc, char **argv) {
start_message.write_images = write_output;
start_message.file_format = FileWriterFormat::NXmxIntegrated;
std::unique_ptr<FileWriter> writer;
try {
if (!output_prefix.empty())
writer = std::make_unique<FileWriter>(start_message);
} catch (const std::exception &e) {
logger.Error("Failed to initialize file writer: {}", e.what());
exit(EXIT_FAILURE);
}
// 4. Processing Setup
int total_images_in_file = reader.GetNumberOfImages();
if (end_image < 0 || end_image > total_images_in_file)
@@ -405,6 +396,22 @@ int main(int argc, char **argv) {
std::atomic<uint64_t> total_uncompressed_bytes = 0;
std::atomic<uint64_t> max_image_number_sent = 0;
start_message.file_format = FileWriterFormat::NXmxIntegrated;
start_message.write_master_file = true;
start_message.write_images = false;
start_message.number_of_images = images_to_process;
start_message.images_per_file = images_to_process;
start_message.hdf5_source_data = reader.GetHDF5DataSource(start_image, images_to_process);
std::unique_ptr<FileWriter> writer;
try {
if (!output_prefix.empty())
writer = std::make_unique<FileWriter>(start_message);
} catch (const std::exception &e) {
logger.Error("Failed to initialize file writer: {}", e.what());
exit(EXIT_FAILURE);
}
// Mimic JFJochReceiver lattice handling (IndexAndRefine handles the logic per thread,
// but we need a central accumulator or use the pool's functionality if IndexAndRefine wraps it)
// Here we will use per-thread IndexAndRefine which uses the shared thread pool.