diff options
author | Thomas White <taw@physics.org> | 2016-03-01 02:59:56 -0800 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-03-01 03:37:24 -0800 |
commit | b012345c26bcf1e4b2079895ed710ea991ec0ec3 (patch) | |
tree | bb00e6ee59b7d1ff08f087cdc2d605380c37bfb9 /libcrystfel/src | |
parent | c780ec9c40325c257fff73c1d330c5f4d81baea9 (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.c | 2 |
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; |