aboutsummaryrefslogtreecommitdiff
path: root/tests/integration_check.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-03-09 15:58:15 +0100
committerThomas White <taw@physics.org>2012-03-09 15:58:15 +0100
commite38375cb0af448c3a7f3667594cf06d1117132c7 (patch)
treef23e49509f032a84d3f774846106755beea64160 /tests/integration_check.c
parentbe33bf078a8ed1ec4c5439095285add97b823fd1 (diff)
Use ADU per eV in geometry file, rather than ADU per photon in beam file
Conflicts: src/get_hkl.c tests/morphology_check.c
Diffstat (limited to 'tests/integration_check.c')
-rw-r--r--tests/integration_check.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/integration_check.c b/tests/integration_check.c
index 1e439611..80a214d1 100644
--- a/tests/integration_check.c
+++ b/tests/integration_check.c
@@ -291,6 +291,8 @@ int main(int argc, char *argv[])
image.data = malloc(128*128*sizeof(float));
image.flags = NULL;
+ image.beam = NULL;
+ image.lambda = ph_eV_to_lambda(1000.0);
image.det = calloc(1, sizeof(struct detector));
image.det->n_panels = 1;
@@ -313,6 +315,7 @@ int main(int argc, char *argv[])
image.det->panels[0].clen = 1.0;
image.det->panels[0].res = 1.0;
image.det->panels[0].integr_radius = 10.0;
+ image.det->panels[0].adu_per_eV = 1.0;
image.width = 128;
image.height = 128;