diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-12-08 16:30:35 -0700 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:09 +0100 |
commit | 57f325c7d13f60ba0c5f71921209e0f8d4f850bf (patch) | |
tree | 8e12c492e8b4fbd4208234b385c9738cc5029137 /src/get_hkl.c | |
parent | 19fafd8430ce2006af9151802534cfd2e12f5295 (diff) |
Use correct accessor type for ESD lists
Diffstat (limited to 'src/get_hkl.c')
-rw-r--r-- | src/get_hkl.c | 6 |
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), |