From 9761a3125e2961b0a58ee44d29926f5af6b19b15 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 4 Sep 2020 15:29:03 +0200 Subject: stream_read_chunk: Set image->spectrum --- libcrystfel/src/stream.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libcrystfel') 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"); -- cgit v1.2.3