diff options
author | Thomas White <taw@physics.org> | 2011-02-03 10:21:33 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:13 +0100 |
commit | 6854d52ef4e7268d50e90ea112af73e42a34a829 (patch) | |
tree | 471583d18adac97420bf2676b5f47f38a7a3c1b5 /src/hrs-scaling.c | |
parent | a00ff7c5f18b20ccc2a8f2ba4469e9d54e387c5c (diff) |
Tidy up
Diffstat (limited to 'src/hrs-scaling.c')
-rw-r--r-- | src/hrs-scaling.c | 6 |
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); } |