aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-12 21:26:13 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:33 +0100
commit0787f3a99627f7a29a81690b7c19b926e2395259 (patch)
tree3790f10f25811dc9289b933b1d0486a4a64631b4
parent35745413662b648c34a322d572c4f5e1b90f9b1b (diff)
Ignore PR-dud images when scaling
-rw-r--r--src/hrs-scaling.c2
-rw-r--r--src/partialator.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index cff0b90c..1c46effe 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -54,6 +54,8 @@ static double iterate_scale(struct image *images, int n, RefList *reference)
double den = 0.0;
double corr;
+ if ( image->pr_dud ) continue;
+
for ( refl = first_refl(image->reflections, &iter);
refl != NULL;
refl = next_refl(refl, iter) )
diff --git a/src/partialator.c b/src/partialator.c
index b6bfe2fc..7b8eefa1 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -201,6 +201,8 @@ static void select_reflections_for_refinement(struct image *images, int n,
int n_fewmatch = 0;
int n_ref = 0;
+ if ( images[i].pr_dud ) continue;
+
for ( refl = first_refl(images[i].reflections, &iter);
refl != NULL;
refl = next_refl(refl, iter) )