aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hrs-scaling.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index b26a44f0..35eedbdc 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -384,6 +384,8 @@ double *scale_intensities(struct image *images, int n, const char *sym,
int j;
for ( j=0; j<images[m].n_cpeaks; j++ ) {
+ if ( !images[m].cpeaks[j].valid ) continue;
+ if ( images[m].cpeaks[j].p < 0.1 ) continue;
tot += images[m].cpeaks[j].intensity
/ images[m].cpeaks[j].p;
}