aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-11-25 11:44:13 +0100
committerThomas White <taw@physics.org>2014-11-25 11:44:13 +0100
commit816388a49973aa9de29125394b1497b49a4b0348 (patch)
tree6ce9cc25bd492a80eb1e183c44a5390037b22a89
parent658797167259e3cd805eb75238549a577a555d38 (diff)
Add warning if the number of peaks is huge
-rw-r--r--libcrystfel/src/index.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 07f563b7..c3f7c35d 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -248,6 +248,11 @@ void index_pattern(struct image *image,
if ( indms == NULL ) return;
+ if ( image_feature_count(image->features) > 10000 ) {
+ STATUS("WARNING: The number of peaks is very large for '%s'.\n",
+ image->filename);
+ }
+
map_all_peaks(image);
image->crystals = NULL;
image->n_crystals = 0;