diff options
author | Thomas White <taw@physics.org> | 2024-02-26 14:31:16 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-02-26 14:31:16 +0100 |
commit | 6156c2197b004479552c4507e936358b6a4ca6a6 (patch) | |
tree | 73059b0aa729c5f228064d91155c440ed1ebe0da /libcrystfel | |
parent | 5e8c1b3f964432a16f180cb64f199f3d02218f3f (diff) |
stream_read_chunk: Set kpred to nominal wavelength
This avoids having to awkwardly pass the wavelength separately, e.g. to
the polarisation correction.
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/stream.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index ffe68162..f1f2173c 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -199,7 +199,7 @@ static int write_peaks(const struct image *image, } -static RefList *read_stream_reflections_2_3(Stream *st) +static RefList *read_stream_reflections_2_3(Stream *st, double kpred) { char *rval = NULL; int first = 1; @@ -267,6 +267,7 @@ static RefList *read_stream_reflections_2_3(Stream *st) set_mean_bg(refl, bg); set_redundancy(refl, 1); set_symmetric_indices(refl, h, k, l); + set_kpred(refl, kpred); } } while ( rval != NULL ); @@ -657,7 +658,7 @@ static void read_crystal(Stream *st, struct image *image, if ( (strcmp(line, STREAM_REFLECTION_START_MARKER) == 0) && (srf & STREAM_REFLECTIONS) ) { - reflist = read_stream_reflections_2_3(st); + reflist = read_stream_reflections_2_3(st, 1.0/image->lambda); if ( reflist == NULL ) { ERROR("Failed while reading reflections\n"); ERROR("Filename = %s\n", image->filename); |