aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/hdf5-file.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-09-19 02:40:38 +0200
committerThomas White <taw@physics.org>2017-09-19 02:40:38 +0200
commit7327abaf844fac6e2d2f487badf985309aa8eec5 (patch)
tree7f2088b84271056ca22713801caf2f69eb1f4831 /libcrystfel/src/hdf5-file.c
parent23ea03c7da2ac924cf85ce5428558e60415ad2db (diff)
get_ev_based_value(): Allow integer types
Just an oversight in the test
Diffstat (limited to 'libcrystfel/src/hdf5-file.c')
-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;