diff options
-rw-r--r-- | src/hrs-scaling.c | 2 | ||||
-rw-r--r-- | src/post-refinement.c | 15 |
2 files changed, 4 insertions, 13 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c index 1e51fd4c..2a50d06a 100644 --- a/src/hrs-scaling.c +++ b/src/hrs-scaling.c @@ -331,7 +331,7 @@ static void run_merge_job(void *vwargs, int cookie) corr = exp(2.0*B*res*res) * get_lorentz(refl) / (G * get_partiality(refl)); - esd = get_esd_intensity(refl) * corr; + esd = fabs(get_esd_intensity(refl) * corr); w = 1.0 / pow(esd, 0.5); /* Running mean and variance calculation */ diff --git a/src/post-refinement.c b/src/post-refinement.c index 3ab1950b..09a8b77a 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -299,18 +299,9 @@ static void apply_shift(Crystal *cr, int k, double shift) break; case GPARAM_OSF : - if ( isnan(shift) ) { - ERROR("Refusing nan shift of OSF\n"); - } else { - t = crystal_get_osf(cr); - t += shift; - if ( t < 0.0 ) { - ERROR("Refusing to make OSF negative.\n"); - exit(0); - } else { - crystal_set_osf(cr, t); - } - } + t = crystal_get_osf(cr); + t += shift; + crystal_set_osf(cr, t); break; case GPARAM_ASX : |