aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-04-29 18:24:49 +0200
committerThomas White <taw@physics.org>2010-04-29 18:24:49 +0200
commit76b82c5c62311f3fcba6b9a55431653fcf226413 (patch)
tree21e8f1ff10d8040074455a311c3b5d9fdd40a37e /src
parentb9e24104d005957d53d63ff14694dbcb0c70317e (diff)
Clarify peak statistics
Diffstat (limited to 'src')
-rw-r--r--src/peaks.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/peaks.c b/src/peaks.c
index bbcb71bc..840e8c26 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -377,7 +377,6 @@ void output_intensities(struct image *image, UnitCell *cell,
int i;
int n_found;
int n_close = 0;
- int n_nonclose = 0;
cell_get_cartesian(cell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz);
@@ -489,8 +488,6 @@ void output_intensities(struct image *image, UnitCell *cell,
if ( (f != NULL) && (d < 30.0) ) {
n_close++;
- } else {
- n_nonclose++;
}
/* Write h,k,l, integrated intensity and centroid coordinates */
@@ -500,10 +497,9 @@ void output_intensities(struct image *image, UnitCell *cell,
}
n_found = image_feature_count(image->features);
- printf("Peak statistics: %i found, of which "
- "%i were close to indexed positions. "
- "%i indexed positions were not close to any detected peak.\n",
- n_found, n_close, n_nonclose);
+ printf("Peak statistics: %i found by peak search. "
+ "%i indexed positions out of %i were close to detected peaks\n",
+ n_found, n_close, n_hits);
/* Blank line at end */
printf("\n");