From 816388a49973aa9de29125394b1497b49a4b0348 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 25 Nov 2014 11:44:13 +0100 Subject: Add warning if the number of peaks is huge --- libcrystfel/src/index.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.2.3