Commit f504be5b authored by Thomas White's avatar Thomas White
Browse files

partialator: Gracefully handle negative and NaN sigma values

Of course, these should never happen.
parent b2e7a864
......@@ -191,10 +191,11 @@ static void run_merge_job(void *vwargs, int cookie)
struct reflection_contributions *c;
if ( get_partiality(refl) < MIN_PART_MERGE ) continue;
if ( isnan(get_esd_intensity(refl)) ) continue;
if ( !wargs->qargs->use_weak || ln_merge ) {
if (get_intensity(refl) < 3.0*get_esd_intensity(refl)) {
if (get_intensity(refl) < 3.0*fabs(get_esd_intensity(refl))) {
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment