diff options
author | Thomas White <taw@physics.org> | 2010-04-29 18:16:50 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-04-29 18:16:50 +0200 |
commit | b9e24104d005957d53d63ff14694dbcb0c70317e (patch) | |
tree | ab3f90a25dd17e4d46458c46c8ec7f68f8cce68b /src | |
parent | 9b8d5e896241ee32821a0e9d2702f462c33f60c7 (diff) |
Make peak detection/indexing statistics more liberal
Diffstat (limited to 'src')
-rw-r--r-- | src/peaks.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/peaks.c b/src/peaks.c index 889565eb..bbcb71bc 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -479,12 +479,17 @@ void output_intensities(struct image *image, UnitCell *cell, * This will produce further revised coordinates. */ integrate_peak(image, f->x, f->y, &x, &y, &intensity); intensity = f->intensity; - n_close++; } else { integrate_peak(image, hits[i].x, hits[i].y, &x, &y, &intensity); + + } + + if ( (f != NULL) && (d < 30.0) ) { + n_close++; + } else { n_nonclose++; } |