diff options
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r-- | libcrystfel/src/stream.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 25066314..08f0e332 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -990,9 +990,11 @@ struct image *stream_read_chunk(Stream *st, StreamFlags srf) if ( strcmp(line, STREAM_CHUNK_END_MARKER) == 0 ) { if ( have_filename && have_ev ) { /* Success */ - create_detgeom(image, st->dtempl); - image_set_zero_data(image, st->dtempl); - image_set_zero_mask(image, st->dtempl); + if ( srf & STREAM_DATA_DETGEOM ) { + 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); |