From 541c05ac1979404e10e514653836cc29adfe7d02 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 3 May 2016 17:09:09 +0200 Subject: Remove slab-relative coordinates from tests --- tests/integration_check.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/integration_check.c') diff --git a/tests/integration_check.c b/tests/integration_check.c index 10989cbb..0713d837 100644 --- a/tests/integration_check.c +++ b/tests/integration_check.c @@ -3,7 +3,11 @@ * * Check reflection integration * - * Copyright © 2013 Thomas White + * Copyright © 2013-2016 Deutsches Elektronen-Synchrotron DESY, + * a research centre of the Helmholtz Association. + * + * Authors: + * 2013-2016 Thomas White * * This file is part of CrystFEL. * @@ -72,10 +76,6 @@ int main(int argc, char *argv[]) image.det->n_panels = 1; image.det->panels = calloc(1, sizeof(struct panel)); - image.det->panels[0].min_fs = 0; - image.det->panels[0].max_fs = w; - image.det->panels[0].min_ss = 0; - image.det->panels[0].max_ss = h; image.det->panels[0].w = w; image.det->panels[0].h = h; image.det->panels[0].fsx = 1.0; @@ -90,11 +90,10 @@ int main(int argc, char *argv[]) image.det->panels[0].cny = -h/2; image.det->panels[0].clen = 60.0e-3; image.det->panels[0].res = 100000; /* 10 px per mm */ - image.det->panels[0].adu_per_eV = 10.0/9000.0; /* 10 adu/ph */ + image.det->panels[0].adu_per_eV = NAN; + image.det->panels[0].adu_per_photon = 10; image.det->panels[0].max_adu = +INFINITY; /* No cutoff */ - image.width = w; - image.height = h; image.dp = malloc(sizeof(float *)); image.dp[0] = malloc(w*h*sizeof(float)); memset(image.dp[0], 0, w*h*sizeof(float)); @@ -121,6 +120,7 @@ int main(int argc, char *argv[]) list = reflist_new(); refl = add_refl(list, 0, 0, 0); set_detector_pos(refl, 64, 64); + set_panel(refl, &image.det->panels[0]); cell = cell_new(); cell_set_lattice_type(cell, L_CUBIC); cell_set_centering(cell, 'P'); -- cgit v1.2.3