JFJOchReader: Add ReadAllSpots option to handle reading just spot finding result

This commit is contained in:
2026-06-02 09:39:26 +02:00
parent 55b65381db
commit 527d239d53
9 changed files with 155 additions and 2 deletions
+4 -1
View File
@@ -1249,9 +1249,12 @@ std::vector<IntegrationOutcome> JFJochHDF5Reader::ReadReflections(size_t start_i
return ret;
}
std::vector<SpotToSave> JFJochHDF5Reader::ReadSpots(size_t image) const {
std::vector<SpotToSave> JFJochHDF5Reader::ReadSpots(int64_t image) const {
std::unique_lock ul(hdf5_mutex);
if (image < 0)
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
"image number must be non-negative");
if (image >= number_of_images)
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
"image must be less than number_of_images");