aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/hdf5-file.c4
1 files 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;