aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/hdf5-file.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-10-08 16:59:20 +0200
committerThomas White <taw@physics.org>2013-10-08 17:18:27 +0200
commit39f63a391bae09087136e48fbc4093ef83b3b33e (patch)
tree82a4d1c8fe374c012146726ce29f24ebd4bde539 /libcrystfel/src/hdf5-file.h
parent4befc077162907a972da894a288d1eb4c2430eb9 (diff)
Read scalar values from HDF5 files as 0d arrays
Historically, scalar values have been represented in our data files as 1d arrays with size=1. Now they are (more correctly) written as 0d arrays. This change allows CrystFEL to read both.
Diffstat (limited to 'libcrystfel/src/hdf5-file.h')
-rw-r--r--libcrystfel/src/hdf5-file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/hdf5-file.h b/libcrystfel/src/hdf5-file.h
index f6051c88..f0a363e8 100644
--- a/libcrystfel/src/hdf5-file.h
+++ b/libcrystfel/src/hdf5-file.h
@@ -59,6 +59,7 @@ extern char **hdfile_read_group(struct hdfile *f, int *n, const char *parent,
extern int hdfile_set_first_image(struct hdfile *f, const char *group);
extern void hdfile_close(struct hdfile *f);
+extern int hdfile_is_scalar(struct hdfile *f, const char *name, int verbose);
extern char *hdfile_get_string_value(struct hdfile *f, const char *name);
extern int get_peaks(struct image *image, struct hdfile *f, const char *p);
extern double get_value(struct hdfile *f, const char *name);