aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-03-01 02:59:56 -0800
committerThomas White <taw@physics.org>2016-03-01 03:37:24 -0800
commitb012345c26bcf1e4b2079895ed710ea991ec0ec3 (patch)
treebb00e6ee59b7d1ff08f087cdc2d605380c37bfb9 /libcrystfel/src
parentc780ec9c40325c257fff73c1d330c5f4d81baea9 (diff)
mark_resolution_range_as_bad(): Skip if nothing to do
This speeds up indexamajig quite a bit
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/detector.c2
1 files changed, 2 insertions, 0 deletions
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; i<image->det->n_panels; i++ ) {
int fs, ss;