From b012345c26bcf1e4b2079895ed710ea991ec0ec3 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 1 Mar 2016 02:59:56 -0800 Subject: mark_resolution_range_as_bad(): Skip if nothing to do This speeds up indexamajig quite a bit --- libcrystfel/src/detector.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index 7689f5f8..419752a4 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -2208,6 +2208,8 @@ void mark_resolution_range_as_bad(struct image *image, { int i; + if ( isinf(min) && isinf(max) ) return; /* nothing to do */ + for ( i=0; idet->n_panels; i++ ) { int fs, ss; -- cgit v1.2.3