diff options
author | Thomas White <taw@physics.org> | 2020-09-04 15:29:03 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-09-04 15:29:03 +0200 |
commit | 9761a3125e2961b0a58ee44d29926f5af6b19b15 (patch) | |
tree | b65f4d839e21d879ad5286e6b41f6aea7b8a75c8 /libcrystfel/src/stream.c | |
parent | 98d4ef9722f10aadf21c96cbcad11a2a150d5a02 (diff) |
stream_read_chunk: Set image->spectrum
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r-- | libcrystfel/src/stream.c | 3 |
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"); |