aboutsummaryrefslogtreecommitdiff
path: root/src/get_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-03-06 14:46:13 +0100
committerThomas White <taw@physics.org>2012-03-06 14:46:13 +0100
commit3710defb709b7ab33ae7849873c4fb62de96e138 (patch)
tree0c50ad73099324891826efb2bbfc33a8ec03d8a3 /src/get_hkl.c
parent95f05d7d455c9bfd28af83b72dfeb47b77fca621 (diff)
Rename old array functions to get them out of the way of API consistency
Diffstat (limited to 'src/get_hkl.c')
-rw-r--r--src/get_hkl.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/get_hkl.c b/src/get_hkl.c
index 4afefd51..c1310418 100644
--- a/src/get_hkl.c
+++ b/src/get_hkl.c
@@ -98,7 +98,7 @@ static void poisson_reflections(RefList *list, double adu_per_photon)
val = get_intensity(refl);
c = adu_per_photon * poisson_noise(val/adu_per_photon);
- set_int(refl, c);
+ set_intensity(refl, c);
}
}
@@ -121,7 +121,7 @@ static void noise_reflections(RefList *list)
r = (double)random()/RAND_MAX;
val += 0.1 * val * r;
- set_int(refl, val);
+ set_intensity(refl, val);
}
}
@@ -233,7 +233,7 @@ static RefList *twin_reflections(RefList *in,
if ( !skip ) {
Reflection *new = add_refl(out, h, k, l);
- set_int(new, total);
+ set_intensity(new, total);
set_esd_intensity(new, sqrt(sigma));
}
@@ -297,9 +297,7 @@ static RefList *expand_reflections(RefList *in, const SymOpList *target,
/* FIXME: Make phase negative if the reflection is
* separated from the original via an inversion */
get_phase(refl, &have_phase);
- if ( have_phase ) {
- set_ph(new, -ph);
- }
+ if ( have_phase ) set_phase(new, -ph);
}
@@ -569,7 +567,7 @@ int main(int argc, char *argv[])
special_position(mero, m, h, k, l);
inty *= (double)num_equivs(mero, m);
- set_int(refl, inty);
+ set_intensity(refl, inty);
}