aboutsummaryrefslogtreecommitdiff
path: root/src/peaks.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-27 17:31:52 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:51 +0100
commitc4f950362d6f1d5a14f0897c15148021e6854efb (patch)
tree75b40d00554606c721d6a46c127039c05824ce95 /src/peaks.c
parentd9dd0cefca108ec5dc7f08aad4be9b5c2ded4389 (diff)
indexamajig: Make SA correction optional (but on by default)
Diffstat (limited to 'src/peaks.c')
-rw-r--r--src/peaks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peaks.c b/src/peaks.c
index 161179df..a91fba99 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -565,7 +565,7 @@ int peak_sanity_check(struct image *image, UnitCell *cell)
void output_intensities(struct image *image, UnitCell *cell,
- pthread_mutex_t *mutex, int unpolar)
+ pthread_mutex_t *mutex, int unpolar, int sa)
{
int i;
int n_found;
@@ -635,7 +635,7 @@ void output_intensities(struct image *image, UnitCell *cell,
* so instead re-integrate using old coordinates.
* This will produce further revised coordinates. */
r = integrate_peak(image, f->x, f->y, &x, &y,
- &intensity, !unpolar, 1);
+ &intensity, !unpolar, sa);
if ( r ) {
/* The original peak (which also went through
* integrate_peak(), but with the mangled
@@ -653,7 +653,7 @@ void output_intensities(struct image *image, UnitCell *cell,
r = integrate_peak(image,
image->hits[i].x,image->hits[i].y,
- &x, &y, &intensity, !unpolar, 1);
+ &x, &y, &intensity, !unpolar, sa);
if ( r ) {
/* Plain old ordinary peak veto */
n_veto++;