diff options
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/stream.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 7860209f..09bb1631 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -500,7 +500,7 @@ void read_crystal(Stream *st, struct image *image) do { - float u, v, w; + float u, v, w, lim; char c; rval = fgets(line, 1023, st->fh); @@ -556,6 +556,11 @@ void read_crystal(Stream *st, struct image *image) crystal_set_num_saturated_reflections(cr, n); } + if ( sscanf(line, "diffraction_resolution_limit = %f nm^-1", + &lim) == 1 ) { + crystal_set_resolution_limit(cr, lim*1e9); + } + if ( strcmp(line, REFLECTION_START_MARKER) == 0 ) { RefList *reflist; |