aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-04-17 11:38:41 +0200
committerThomas White <taw@physics.org>2015-04-20 15:50:41 +0200
commitb9312ad422ec89b380cb38746e60345f5649e46e (patch)
treeea974fabea1b8e6aa358b5a469f003fdee08bc81 /src
parent1f83bf629093e45c2c16d91b9947158127265a86 (diff)
Tweak rejection
Diffstat (limited to 'src')
-rw-r--r--src/predict-refine.c4
-rw-r--r--src/process_image.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/predict-refine.c b/src/predict-refine.c
index 62e9c128..996509e9 100644
--- a/src/predict-refine.c
+++ b/src/predict-refine.c
@@ -248,8 +248,8 @@ static int pair_peaks(struct image *image, Crystal *cr,
pd = pow(fs - rps[i].peak->fs, 2.0)
+ pow(ss - rps[i].peak->ss, 2.0);
if ( pd > 100.0 * 100.0 ) {
- STATUS("rejecting %i %i %i because %f %f -> %f %f\n",
- h, k, l, fs, ss, rps[i].peak->fs, rps[i].peak->ss);
+ //STATUS("rejecting %i %i %i because %f %f -> %f %f\n",
+ // h, k, l, fs, ss, rps[i].peak->fs, rps[i].peak->ss);
continue;
}
diff --git a/src/process_image.c b/src/process_image.c
index c159465f..bfbe496e 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -71,9 +71,9 @@ static void try_refine_autoR(struct image *image, Crystal *cr)
refine_radius(cr, image);
new_R = crystal_get_profile_radius(cr);
- if ( (new_R > 0.02e9) || (new_R > 1.2*old_R) ) {
+ if ( (new_R > 0.02e9) || (new_R > 1.2*old_R) || (old_R > 0.02e9) ) {
STATUS("Rejecting refinement solution with "
- "R %.3f -> %.3f nm^-1\n", old_R, new_R);
+ "R %.3f -> %.3f nm^-1\n", old_R/1e9, new_R/1e9);
crystal_set_user_flag(cr, 1);
return;
}