aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-02-22 06:09:34 -0800
committerThomas White <taw@physics.org>2014-02-22 06:09:34 -0800
commit46a8d7c7a07997a1fc1d2d822318daf6a36a8c70 (patch)
tree2a3d83ee0826ae4522d4885e35c78ac62ef75ce7 /libcrystfel
parentaec05806f7bdefbc4669c326a85bd4fa0644eed7 (diff)
read_chunk(): set indexed_by
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/stream.c8
1 files changed, 8 insertions, 0 deletions
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;