diff options
author | Thomas White <taw@physics.org> | 2012-04-26 14:10:20 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-04-26 14:10:20 +0200 |
commit | d6c040ed981827f072e3e22501620a65a4418acd (patch) | |
tree | 7caa37e559a89830eaf15b21de05d4ee1a84673a /libcrystfel/src | |
parent | cfbbdae0ff6b0823fd9de0971f51b9fd939db5b6 (diff) |
Single point of truth for indices when sorting reflections
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/peaks.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c index cddb6069..4b146eb6 100644 --- a/libcrystfel/src/peaks.c +++ b/libcrystfel/src/peaks.c @@ -534,9 +534,6 @@ int peak_sanity_check(struct image *image) struct integr_ind { - signed int h; - signed int k; - signed int l; double res; Reflection *refl; }; @@ -578,9 +575,6 @@ static struct integr_ind *sort_reflections(RefList *list, UnitCell *cell, get_indices(refl, &h, &k, &l); res = resolution(cell, h, k, l); - il[i].h = h; - il[i].k = k; - il[i].l = l; il[i].res = res; il[i].refl = refl; @@ -620,10 +614,12 @@ void integrate_reflections(struct image *image, int use_closer, int bgsub, double pfs, pss; int r; Reflection *refl; + signed int h, k, l; refl = il[i].refl; get_detector_pos(refl, &pfs, &pss); + get_indices(refl, &h, &k, &l); /* Is there a really close feature which was detected? */ if ( use_closer ) { |