aboutsummaryrefslogtreecommitdiff
path: root/src/predict-refine.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-04-23 17:52:53 +0200
committerThomas White <taw@physics.org>2015-04-28 14:47:19 +0200
commit161943a19eadbf649eb0a85f044f9f3776171a89 (patch)
tree78880dbea78392e8ba0a7a595abe8e1471e525d2 /src/predict-refine.c
parent9d5afa09933ad3660d6b342c5828e5893e045eed (diff)
Remove unnecessary rejection tests
Diffstat (limited to 'src/predict-refine.c')
-rw-r--r--src/predict-refine.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/predict-refine.c b/src/predict-refine.c
index 50fc7f8a..cedcb370 100644
--- a/src/predict-refine.c
+++ b/src/predict-refine.c
@@ -279,21 +279,12 @@ static int pair_peaks(struct image *image, Crystal *cr,
* good pairings */
for ( i=0; i<n; i++ ) {
- double p, rlow, rhigh;
double fs, ss, pd;
signed int h, k, l;
Reflection *refl = rps[i].refl;
get_indices(refl, &h, &k, &l);
- /* Is the supposed reflection anywhere near Bragg? */
- get_partial(refl, &rlow, &rhigh, &p);
- if ( (rlow-rhigh)/2.0 > 0.02e9 ) {
- STATUS("rejecting %i %i %i because exerr=%e nm^-1\n",
- h, k, l, 1e9*(rlow-rhigh)/2.0);
- continue;
- }
-
/* Is the supposed reflection anywhere near the peak? */
get_detector_pos(refl, &fs, &ss);
pd = pow(fs - rps[i].peak->fs, 2.0)