aboutsummaryrefslogtreecommitdiff
path: root/src/process_image.c
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/process_image.c
parent1f83bf629093e45c2c16d91b9947158127265a86 (diff)
Tweak rejection
Diffstat (limited to 'src/process_image.c')
-rw-r--r--src/process_image.c4
1 files changed, 2 insertions, 2 deletions
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;
}