diff options
author | Thomas White <taw@physics.org> | 2014-10-22 13:49:39 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-10-23 17:02:32 +0200 |
commit | 8bdd03533aefabfe13259eb6e9b585420b4ed984 (patch) | |
tree | 66c102f9d614343e6c4590a894cd653be948f53c /libcrystfel | |
parent | 587a9b4c106c188a9546ac9483b597fef7243a67 (diff) |
Read back the event ID
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/stream.c | 5 |
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); |