aboutsummaryrefslogtreecommitdiff
path: root/src/geometry.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-04 13:21:36 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:31 +0100
commitb67429762f02d906fdc3ab14da4577c958937679 (patch)
tree5480a78070ce1e319ea15674ff61255dbc77e7d9 /src/geometry.c
parentb7928ad9b90c45ff227bb6124c3a365283f11db4 (diff)
Don't select scalable reflections during post refinement
Diffstat (limited to 'src/geometry.c')
-rw-r--r--src/geometry.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/geometry.c b/src/geometry.c
index 9b937b24..e2454adf 100644
--- a/src/geometry.c
+++ b/src/geometry.c
@@ -275,45 +275,10 @@ RefList *find_intersections(struct image *image, UnitCell *cell)
}
-/* Decide which reflections can be scaled */
-static void select_scalable_reflections(RefList *list, ReflItemList *sc_l)
-{
- Reflection *refl;
- RefListIterator *iter;
-
- for ( refl = first_refl(list, &iter);
- refl != NULL;
- refl = next_refl(refl, iter) ) {
-
- int scalable = 1;
- double v;
-
- if ( get_partiality(refl) < 0.1 ) scalable = 0;
- v = fabs(get_intensity(refl));
- if ( v < 0.1 ) scalable = 0;
-
- set_scalable(refl, scalable);
- if ( scalable && (sc_l != NULL) ) {
-
- signed int h, k, l;
-
- get_indices(refl, &h, &k, &l); /* Should already be
- * asymmetric */
- if ( (sc_l != NULL) && (!find_item(sc_l, h, k, l)) ) {
- add_item(sc_l, h, k, l);
- }
-
- }
-
- }
-}
-
-
/* Calculate partialities and apply them to the image's raw_reflections,
* while adding to a ReflItemList of the currentl scalable (asymmetric)
* reflections. */
void update_partialities(struct image *image, const char *sym,
- ReflItemList *scalable,
int *n_expected, int *n_found, int *n_notfound)
{
Reflection *refl;
@@ -380,5 +345,4 @@ void update_partialities(struct image *image, const char *sym,
}
reflist_free(predicted);
- select_scalable_reflections(image->reflections, scalable);
}