diff options
author | Thomas White <taw@physics.org> | 2012-11-28 16:33:32 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-11-29 12:01:24 +0100 |
commit | f322397ceee6a12518c193fafd73487b7b19b875 (patch) | |
tree | 16ad056b8df6760ede920c95506193241bb0ae8a | |
parent | 483e3d5883461f0572a181211b6aa306fd2bfdc0 (diff) |
Suppress "Couldn't sort reflections" message when there are no predicted peaks
-rw-r--r-- | libcrystfel/src/peaks.c | 2 |
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"); |