aboutsummaryrefslogtreecommitdiff
path: root/src/get_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-12-08 16:30:35 -0700
committerThomas White <taw@physics.org>2012-02-22 15:27:09 +0100
commit57f325c7d13f60ba0c5f71921209e0f8d4f850bf (patch)
tree8e12c492e8b4fbd4208234b385c9738cc5029137 /src/get_hkl.c
parent19fafd8430ce2006af9151802534cfd2e12f5295 (diff)
Use correct accessor type for ESD lists
Diffstat (limited to 'src/get_hkl.c')
-rw-r--r--src/get_hkl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/get_hkl.c b/src/get_hkl.c
index db8bd6f3..ba5106ec 100644
--- a/src/get_hkl.c
+++ b/src/get_hkl.c
@@ -169,14 +169,14 @@ static ReflItemList *twin_reflections(double *ref, ReflItemList *items,
}
total += lookup_intensity(ref, hu, ku, lu);
- sigma += pow(lookup_intensity(esds, hu, ku, lu), 2.0);
+ sigma += pow(lookup_sigma(esds, hu, ku, lu), 2.0);
}
if ( !skip ) {
set_intensity(ref, h, k, l, total);
- set_intensity(esds, h, k, l, sqrt(sigma));
+ set_sigma(esds, h, k, l, sqrt(sigma));
add_item(new, h, k, l);
}
@@ -348,7 +348,7 @@ int main(int argc, char *argv[])
} else {
phases = NULL;
}
- esds = new_list_intensity();
+ esds = new_list_sigma();
if ( input == NULL ) {
input_items = new_items();
ideal_ref = get_reflections(mol, eV_to_J(1790.0), 1/(0.05e-9),