diff options
author | Thomas White <taw@physics.org> | 2015-07-17 14:37:59 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-07-17 14:53:32 +0200 |
commit | 6ba94cc7527dafe06a80c35958528964c595ddf3 (patch) | |
tree | 21c0909bf1d4ef19dd558da5cf811573c7d71564 /libcrystfel | |
parent | d8ccd52c363485f4aed69f691de9667444b1ca4d (diff) |
Load bandwidth from stream with correct units
D'oh!
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/stream.c | 4 |
1 files 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 ) { |