aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-07-08 11:47:45 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:53 +0100
commitf672ed3da7d82b5519b1b5aa77c82e16cc11e0a5 (patch)
tree9ebb2c7a5d2bdd01280863ecf5b44e122cb0b8f8 /src
parenta84776a4ba712b04644f664fb806a1f47fa3b066 (diff)
Fix confusing labels
Diffstat (limited to 'src')
-rw-r--r--src/reflections.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reflections.c b/src/reflections.c
index a2d94662..bd9b446d 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -70,10 +70,11 @@ void write_reflections(const char *filename, unsigned int *counts,
}
if ( zone_axis && (l != 0) ) continue;
- intensity = lookup_phase(ref, h, k, l) / N;
+ /* Divide measured intensity by the number of counts */
+ intensity = lookup_intensity(ref, h, k, l) / N;
if ( phases != NULL ) {
double p;
- p = lookup_intensity(phases, h, k, l);
+ p = lookup_phase(phases, h, k, l);
snprintf(ph, 31, "%8.6f", p);
} else {
strncpy(ph, " -", 31);