aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-07-31 17:17:40 +0200
committerThomas White <taw@physics.org>2020-07-31 17:18:22 +0200
commite08b543d99ff6107c523b92b9cb08b5f337492a7 (patch)
tree2f998d0e200e6c8b97f031a8f88a9371120f9d3c /libcrystfel/src/image.c
parent531984799b71b0662f09d6c212614fa27ef2b3a9 (diff)
Move spectrum loading out of indexamajig/process_image
Diffstat (limited to 'libcrystfel/src/image.c')
-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 *));