aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index bfb3d760..2e9249e8 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -616,6 +616,10 @@ struct image *image_read(DataTemplate *dtempl,
image->bw = dtempl->bandwidth;
+ /* FIXME: Possibly load spectrum from file */
+ image->spectrum = spectrum_generate_gaussian(image->lambda,
+ image->bw);
+
create_detgeom(image, dtempl);
image->bad = malloc(dtempl->n_panels * sizeof(int *));