From f672ed3da7d82b5519b1b5aa77c82e16cc11e0a5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 8 Jul 2010 11:47:45 +0200 Subject: Fix confusing labels --- src/reflections.c | 5 +++-- 1 file 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); -- cgit v1.2.3