JFJOchReader: Add ReadAllSpots option to handle reading just spot finding result
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user