aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-04-26 14:08:12 +0200
committerThomas White <taw@physics.org>2012-04-26 14:08:12 +0200
commitcfbbdae0ff6b0823fd9de0971f51b9fd939db5b6 (patch)
tree7167d52829efec8c6292e7c75e11add57c3ef5f1 /libcrystfel/src
parentd7ff5c5ab2ffdaa2808d5e336603804450ca15b0 (diff)
indexamajig: Make --no-closer-peak the default
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/peaks.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 88477190..cddb6069 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -52,10 +52,6 @@
#include "beam-parameters.h"
-/* How close a peak must be to an indexed position to be considered "close"
- * for the purposes of integration. */
-#define PEAK_REALLY_CLOSE (10.0)
-
/* Degree of polarisation of X-ray beam */
#define POL (1.0)
@@ -640,7 +636,9 @@ void integrate_reflections(struct image *image, int use_closer, int bgsub,
} else {
f = NULL;
}
- if ( (f != NULL) && (d < PEAK_REALLY_CLOSE) ) {
+
+ /* FIXME: Horrible hardcoded value */
+ if ( (f != NULL) && (d < 10.0) ) {
pfs = f->fs;
pss = f->ss;