aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-06-16 17:52:06 +0200
committerThomas White <taw@physics.org>2015-06-16 17:52:06 +0200
commit031a4d37cf355fd72a991dbd1167c8e492011730 (patch)
treee5afd3661d057dd183895fba352ee927f24cf441 /src
parent8d1af638f127095c4760030baad92a6ca2da7411 (diff)
partialator: Fix rejection bugs
Diffstat (limited to 'src')
-rw-r--r--src/partialator.c2
-rw-r--r--src/rejection.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/partialator.c b/src/partialator.c
index d5e1aef5..9156536c 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -748,7 +748,7 @@ int main(int argc, char *argv[])
/* Make a first pass at cutting out crap */
STATUS("Checking patterns.\n");
- early_rejection(crystals, n_crystals);
+ //early_rejection(crystals, n_crystals);
/* Make initial estimates */
full = merge_intensities(crystals, n_crystals, nthreads, pmodel,
diff --git a/src/rejection.c b/src/rejection.c
index 28a8d32f..a565fec3 100644
--- a/src/rejection.c
+++ b/src/rejection.c
@@ -90,7 +90,6 @@ void early_rejection(Crystal **crystals, int n)
STATUS("Mean intensity/peak = %f ADU\n", m/n);
STATUS("%i crystals flagged\n", n_flag);
- check_rejection(crystals, n, NULL);
}
@@ -176,7 +175,7 @@ void check_rejection(Crystal **crystals, int n, RefList *full)
for ( i=0; i<n; i++ ) {
/* Reject if B factor modulus is very large */
- if ( fabs(crystal_get_Bfac(crystals[i])) > 1e18 ) {
+ if ( fabs(crystal_get_Bfac(crystals[i])) > 1e-18 ) {
crystal_set_user_flag(crystals[i], 1);
}