From 7327abaf844fac6e2d2f487badf985309aa8eec5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 19 Sep 2017 02:40:38 +0200 Subject: get_ev_based_value(): Allow integer types Just an oversight in the test --- libcrystfel/src/hdf5-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index 6fc10357..7e3d6b11 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -1284,8 +1284,8 @@ static int get_ev_based_value(struct hdfile *f, const char *name, type = H5Dget_type(dh); class = H5Tget_class(type); - if ( class != H5T_FLOAT ) { - ERROR("Not a floating point value.\n"); + if ( (class != H5T_FLOAT) && (class != H5T_INTEGER) ) { + ERROR("Not a floating point or integer value.\n"); H5Tclose(type); H5Dclose(dh); return 1; -- cgit v1.2.3