From 9fe6fa361f3fd5f6579437caa38b79bb23cf510a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 5 Oct 2015 11:34:19 +0200 Subject: Read integers from HDF5 properly --- libcrystfel/src/hdf5-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index 8a7a46b7..bd0124fd 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -1173,8 +1173,8 @@ static int get_scalar_value(struct hdfile *f, const char *name, void *val, 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