aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/stream.c5
1 files changed, 5 insertions, 0 deletions
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);