From 8bdd03533aefabfe13259eb6e9b585420b4ed984 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 22 Oct 2014 13:49:39 +0200 Subject: Read back the event ID --- libcrystfel/src/stream.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 7ce0c5c4..519a1ca9 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -913,6 +913,7 @@ int read_chunk_2(Stream *st, struct image *image, StreamReadFlags srf) image->features = NULL; image->crystals = NULL; image->n_crystals = 0; + image->event = NULL; if ( (srf & STREAM_READ_REFLECTIONS) || (srf & STREAM_READ_UNITCELL) ) { srf |= STREAM_READ_CRYSTALS; @@ -935,6 +936,10 @@ int read_chunk_2(Stream *st, struct image *image, StreamReadFlags srf) have_filename = 1; } + if ( strncmp(line, "Event: ", 7) == 0 ) { + image->event = get_event_from_event_string(line+7); + } + if ( strncmp(line, "indexed_by = ", 13) == 0 ) { IndexingMethod *list; list = build_indexer_list(line+13); -- cgit v1.2.3