aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-10-31 17:39:09 +0100
committerThomas White <taw@physics.org>2013-10-31 17:39:09 +0100
commit85f9d25782b59aa397fbe224fac296a8fbcc5407 (patch)
tree1b026160e7a8dc96357c3ddbed8a43c546c1a47a /src
parente6508cf8ffb1a686edfe2cda33a0580bb7bd78ec (diff)
process_hkl: Reject reflections with sigma=nan if --min-snr is used
Diffstat (limited to 'src')
-rw-r--r--src/process_hkl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c
index 4e0738aa..047ef55c 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -232,6 +232,7 @@ static int merge_crystal(RefList *model, struct image *image, Crystal *cr,
refl_sigma = scale * get_esd_intensity(refl);
w = 1.0;//pow(refl_sigma, -2.0);
+ if ( (min_snr > -INFINITY) && isnan(refl_sigma) ) continue;
if ( refl_intensity < min_snr * refl_sigma ) continue;
get_indices(refl, &h, &k, &l);