From 46a8d7c7a07997a1fc1d2d822318daf6a36a8c70 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 22 Feb 2014 06:09:34 -0800 Subject: read_chunk(): set indexed_by --- libcrystfel/src/stream.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libcrystfel') diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index c4ded787..04d2277f 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -458,6 +458,14 @@ int read_chunk(Stream *st, struct image *image) have_filename = 1; } + if ( strncmp(line, "indexed_by = ", 13) == 0 ) { + IndexingMethod *list; + list = build_indexer_list(line+13); + image->indexed_by = list[0]; + free(list); + have_filename = 1; + } + if ( strncmp(line, "photon_energy_eV = ", 19) == 0 ) { image->lambda = ph_en_to_lambda(eV_to_J(atof(line+19))); have_ev = 1; -- cgit v1.2.3