aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-11-28 16:33:32 +0100
committerThomas White <taw@physics.org>2012-11-29 12:01:24 +0100
commitf322397ceee6a12518c193fafd73487b7b19b875 (patch)
tree16ad056b8df6760ede920c95506193241bb0ae8a /libcrystfel
parent483e3d5883461f0572a181211b6aa306fd2bfdc0 (diff)
Suppress "Couldn't sort reflections" message when there are no predicted peaks
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/peaks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index f13c7245..7ab194c7 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -704,6 +704,8 @@ void integrate_reflections(struct image *image, int use_closer, int bgsub,
int first = 1;
int **bgMasks;
+ if ( num_reflections(image->reflections) == 0 ) return;
+
il = sort_reflections(image->reflections, image->indexed_cell, &n);
if ( il == NULL ) {
ERROR("Couldn't sort reflections\n");