From 6ba94cc7527dafe06a80c35958528964c595ddf3 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 17 Jul 2015 14:37:59 +0200 Subject: Load bandwidth from stream with correct units D'oh! --- libcrystfel/src/stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 808149e3..d8968891 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -1151,8 +1151,8 @@ int read_chunk_2(Stream *st, struct image *image, StreamReadFlags srf) image->div = div; } - if ( sscanf(line, "beam_bandwidth = %f %%", &bw) == 1 ) { - image->bw = bw/100.0; + if ( sscanf(line, "beam_bandwidth = %f", &bw) == 1 ) { + image->bw = bw; } if ( sscanf(line, "num_peaks = %lld %%", &num_peaks) == 1 ) { -- cgit v1.2.3