diff options
author | Thomas White <taw@physics.org> | 2018-09-07 15:50:41 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-09-07 15:50:41 +0200 |
commit | 6ea010ba017579d0197f45c940f03d04800e24e7 (patch) | |
tree | 7a0c22bafaaab5ce5f7f39a538f219917ff384d9 /src/rejection.c | |
parent | a61dc5721a2896267dcd783389908bf9f54ff21a (diff) |
partialator: Add option to disable deltaCChalf
Diffstat (limited to 'src/rejection.c')
-rw-r--r-- | src/rejection.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/rejection.c b/src/rejection.c index 01ed2cf0..371216a9 100644 --- a/src/rejection.c +++ b/src/rejection.c @@ -3,11 +3,11 @@ * * Crystal rejection for scaling * - * Copyright © 2012-2015 Deutsches Elektronen-Synchrotron DESY, + * Copyright © 2012-2018 Deutsches Elektronen-Synchrotron DESY, * a research centre of the Helmholtz Association. * * Authors: - * 2010-2015 Thomas White <taw@physics.org> + * 2010-2018 Thomas White <taw@physics.org> * * This file is part of CrystFEL. * @@ -254,13 +254,16 @@ static void show_duds(Crystal **crystals, int n_crystals) } -void check_rejection(Crystal **crystals, int n, RefList *full, double max_B) +void check_rejection(Crystal **crystals, int n, RefList *full, double max_B, + int no_deltacchalf) { int i; int n_acc = 0; /* Check according to delta CC½ */ - if ( full != NULL ) check_deltacchalf(crystals, n, full); + if ( !no_deltacchalf && (full != NULL) ) { + check_deltacchalf(crystals, n, full); + } for ( i=0; i<n; i++ ) { if ( fabs(crystal_get_Bfac(crystals[i])) > max_B ) { |