From fdce01adf9fc5950904b644ea755760cb32ec5b2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 7 Jul 2021 18:32:51 +0200 Subject: Bump stream version to 2.4 The format for storing headers has changed from hdf5/location to header/type/location. --- libcrystfel/src/stream.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libcrystfel/src/stream.c') diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 09a505a7..a9edd6c6 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -56,7 +56,7 @@ /** \file stream.h */ #define LATEST_MAJOR_VERSION (2) -#define LATEST_MINOR_VERSION (3) +#define LATEST_MINOR_VERSION (4) #define AT_LEAST_VERSION(st, a, b) ((st->major_version>=(a)) \ && (st->minor_version>=(b))) @@ -1262,6 +1262,9 @@ Stream *stream_open_for_read(const char *filename) } else if ( strncmp(line, "CrystFEL stream format 2.3", 26) == 0 ) { st->major_version = 2; st->minor_version = 3; + } else if ( strncmp(line, "CrystFEL stream format 2.4", 26) == 0 ) { + st->major_version = 2; + st->minor_version = 4; } else { ERROR("Invalid stream, or stream format is too new.\n"); stream_close(st); -- cgit v1.2.3