aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-22 15:50:15 +0100
committerThomas White <taw@physics.org>2010-01-22 15:50:15 +0100
commitef9281fb30a07b8ee099ada3e1f7a0a10cbca5c0 (patch)
tree42cee1574cb21a2c67796d6fa715631d56e6fd1e /src/pattern_sim.c
parent59e333ee9e40ae0be0af08fe0eb739f1babf5771 (diff)
Remove 'xray_energy' to leave a single point of truth for wavelength
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 7aba8074..9e4abf90 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -217,8 +217,7 @@ int main(int argc, char *argv[])
image.y_centre = 512.5;
image.camera_len = 0.05; /* 5 cm (front CCD can move from 5cm-20cm) */
image.resolution = 13333.3; /* 75 micron pixel size */
- image.xray_energy = eV_to_J(2.0e3); /* 2 keV energy */
- image.lambda = ph_en_to_lambda(image.xray_energy); /* Wavelength */
+ image.lambda = ph_en_to_lambda(eV_to_J(2.0e3)); /* Wavelength */
image.molecule = NULL;
/* Splurge a few useful numbers */