aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKenneth Beyerlein <kenneth.beyerlein@desy.de>2012-06-13 17:32:07 +0200
committerKenneth Beyerlein <kenneth.beyerlein@desy.de>2012-06-13 17:32:07 +0200
commitb90ddc13d5638aa5e9e4094228f464ce48989eb7 (patch)
tree18ee19b6a4a2c73cb5f6847a7d97051914ee0c98 /tests
parentb6e0b7972e3dbdace0034d439b992faf3ac8c454 (diff)
Mask peaks in the background calculation of integrate_peak.
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_check.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/integration_check.c b/tests/integration_check.c
index 2d18ac5a..7fe98fa0 100644
--- a/tests/integration_check.c
+++ b/tests/integration_check.c
@@ -203,6 +203,8 @@ int main(int argc, char *argv[])
image.height = 128;
memset(image.data, 0, 128*128*sizeof(float));
+ image.reflections=reflist_new();
+
/* First check: no intensity -> no peak, or very low intensity */
r = integrate_peak(&image, 64, 64, &fsp, &ssp, &intensity, &sigma,
10.0, 15.0, 17.0);