aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-02-03 10:21:33 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:13 +0100
commit6854d52ef4e7268d50e90ea112af73e42a34a829 (patch)
tree471583d18adac97420bf2676b5f47f38a7a3c1b5
parenta00ff7c5f18b20ccc2a8f2ba4469e9d54e387c5c (diff)
Tidy up
-rw-r--r--src/hrs-scaling.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index 86a40fb1..30af5a61 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -385,12 +385,14 @@ double *scale_intensities(struct image *images, int n, const char *sym,
for ( j=0; j<images[m].n_cpeaks; j++ ) {
int scalable = 1;
+
if ( images[m].cpeaks[j].p < 0.1 ) scalable = 0;
if ( !images[m].cpeaks[j].valid ) scalable = 0;
- if ( images[m].cpeaks[j].intensity < 0.1 ) scalable = 0;
+ if ( fabs(images[m].cpeaks[j].intensity) < 0.1 ) {
+ scalable = 0;
+ }
images[m].cpeaks[j].scalable = scalable;
- STATUS("%i %i %i\n", m, j, scalable);
}