From f8f0ed90db33db65b3263d7013c973ca3f01ccd0 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 28 Aug 2019 17:01:43 +0200 Subject: prediction_gradient_check, prof2d_check: Set up Spectrum structure --- tests/prediction_gradient_check.c | 1 + tests/prof2d_check.c | 1 + 2 files changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/prediction_gradient_check.c b/tests/prediction_gradient_check.c index 85d61ead..2e212083 100644 --- a/tests/prediction_gradient_check.c +++ b/tests/prediction_gradient_check.c @@ -418,6 +418,7 @@ int main(int argc, char *argv[]) image.div = 1e-3; image.bw = 0.01; image.filename = malloc(256); + image.spectrum = spectrum_generate_gaussian(image.lambda, image.bw); cr = crystal_new(); if ( cr == NULL ) { diff --git a/tests/prof2d_check.c b/tests/prof2d_check.c index 803e60c4..ed87ae30 100644 --- a/tests/prof2d_check.c +++ b/tests/prof2d_check.c @@ -85,6 +85,7 @@ int main(int argc, char *argv[]) image.lambda = ph_eV_to_lambda(9000.0); image.bw = 0.000001; image.div = 0.0; + image.spectrum = spectrum_generate_gaussian(image.lambda, image.bw); image.det = calloc(1, sizeof(struct detector)); image.det->n_panels = 1; -- cgit v1.2.3