aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r--libcrystfel/src/stream.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index 1a9c87cd..9e084f94 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -993,6 +993,9 @@ struct image *stream_read_chunk(Stream *st, StreamFlags srf)
create_detgeom(image, st->dtempl);
image_set_zero_data(image, st->dtempl);
image_set_zero_mask(image, st->dtempl);
+ /* FIXME: Maybe arbitrary spectrum from file (?) */
+ image->spectrum = spectrum_generate_gaussian(image->lambda,
+ image->bw);
return image;
}
ERROR("Incomplete chunk found in input file.\n");