aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-12-09 17:46:02 +0100
committerThomas White <taw@physics.org>2014-12-09 17:46:02 +0100
commita4b7d16704f8ff3dc29fb936954539a0466a61e6 (patch)
tree06f9b55af223db148726bc9cfcc5684226e2d541 /libcrystfel
parentcac88930afea54def29751416e1ce3ec795072b3 (diff)
Fix reading of profile_radius
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index c118e83b..6d741d9d 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -967,8 +967,8 @@ static void read_crystal(Stream *st, struct image *image, StreamReadFlags srf)
crystal_set_resolution_limit(cr, lim*1e9);
}
- if ( sscanf(line, "profile_radius = %e m^-1", &rad) == 1 ) {
- crystal_set_profile_radius(cr, rad);
+ if ( sscanf(line, "profile_radius = %e nm^-1", &rad) == 1 ) {
+ crystal_set_profile_radius(cr, rad*1e9);
}
if ( (strcmp(line, REFLECTION_START_MARKER) == 0)