Commit 2c932f6c authored by Thomas White's avatar Thomas White
Browse files

Do errors properly

parent f96e5b1b
......@@ -93,7 +93,9 @@ static void s_uhavha(signed int hat, signed int kat, signed int lat,
if ( !get_scalable(refl) ) continue;
ic = get_intensity(refl) / get_partiality(refl);
sigi = ic / 10.0; /* FIXME */
/* Get the error in the estimated full intensity */
sigi = get_esd_intensity(refl) / get_partiality(refl);
uha_val += 1.0 / pow(sigi, 2.0);
vha_val += ic / pow(sigi, 2.0);
......
......@@ -100,6 +100,7 @@ static void calculate_partials(RefList *partial, double osf,
Ip = osf * p * If;
set_int(refl, Ip);
set_esd_intensity(refl, Ip/10.0);
}
}
......
Supports Markdown
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