diff options
author | Thomas White <taw@physics.org> | 2015-03-12 15:09:35 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-03-12 16:37:25 +0100 |
commit | a2c3367a2578265269bb2c6386fb9168ee43b85a (patch) | |
tree | 99a5a3d2374424080349193a0c06ae2677dfe4c1 /src/hrs-scaling.c | |
parent | 8b79062865999a02ca8c049030531829abb1060d (diff) |
Tweak rejection criteria
Diffstat (limited to 'src/hrs-scaling.c')
-rw-r--r-- | src/hrs-scaling.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c index 4d03f6b0..01a40fbf 100644 --- a/src/hrs-scaling.c +++ b/src/hrs-scaling.c @@ -151,7 +151,7 @@ static void run_scale_job(void *vwargs, int cookie) if ( Ihl <= 0.0 ) continue; if ( Ih <= 0.0 ) continue; - if ( isnan(Ih) || isinf(Ihl) ) continue; + if ( isnan(Ihl) || isinf(Ihl) ) continue; if ( isnan(Ih) || isinf(Ih) ) continue; if ( n == max_n ) { @@ -399,8 +399,8 @@ static void reject_outliers(double *old_osfs, int n, Crystal **crystals) double Bfac = crystal_get_Bfac(crystals[i]); int bad = 0; - if ( isnan(osf) || (osf < 0.0) || (osf > 10.0) ) bad = 1; - if ( isnan(Bfac) || (Bfac<-40e-20) || (Bfac>40e-20) ) bad = 1; + if ( isnan(osf) || (osf < 0.0) ) bad = 1; + if ( isnan(Bfac) || (Bfac<-100e-20) || (Bfac>100e-20) ) bad = 1; if ( bad ) { crystal_set_user_flag(crystals[i], 1); |