diff options
author | Thomas White <taw@physics.org> | 2018-11-16 10:28:05 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-11-16 10:28:05 +0100 |
commit | 6f6402ae168884b9332f07d3cf9b78ffa8cedb53 (patch) | |
tree | 143aecb93acd9138048661858ca733309647e740 /src/rejection.c | |
parent | 8a863b1aaaea5dabe9106527bfad23f7e241f7d7 (diff) |
Require deltaCChalf to actually be negative before rejecting
Diffstat (limited to 'src/rejection.c')
-rw-r--r-- | src/rejection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rejection.c b/src/rejection.c index 55546bbc..c07287b3 100644 --- a/src/rejection.c +++ b/src/rejection.c @@ -313,7 +313,7 @@ static void check_deltacchalf(Crystal **crystals, int n, RefList *full) STATUS("deltaCChalf = %f ± %f %%\n", mean*100.0, sd*100.0); for ( i=0; i<n; i++ ) { - if ( vals[i] < mean-2.0*sd ) { + if ( (vals[i]<0.0) && (vals[i] < mean-2.0*sd) ) { crystal_set_user_flag(crystals[i], PRFLAG_DELTACCHALF); } } |