aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-07-07 18:32:51 +0200
committerThomas White <taw@physics.org>2021-07-07 18:32:51 +0200
commitfdce01adf9fc5950904b644ea755760cb32ec5b2 (patch)
treed07e1cde8fd1182b25eac9489ca10108da86a6f0 /libcrystfel
parent6568b39c309c85237d0268433be621fdf66a6a5e (diff)
Bump stream version to 2.4
The format for storing headers has changed from hdf5/location to header/type/location.
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/stream.c5
1 files changed, 4 insertions, 1 deletions
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);