diff options
author | Thomas White <taw@physics.org> | 2020-06-08 14:20:14 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:44 +0200 |
commit | f2de0f8e9a8c520125bbffb13fc11f6fdfc8a1dd (patch) | |
tree | 20a589e260e6dd83fa40fa9248ee07f6770079ed /libcrystfel/src/image-hdf5.c | |
parent | 78917049b09ece78834d6309eb3f035e83537d1d (diff) |
Add is_hdf5_file
Avoids using HDF5 API calls all over the code
Diffstat (limited to 'libcrystfel/src/image-hdf5.c')
-rw-r--r-- | libcrystfel/src/image-hdf5.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c index 6b6b70c5..02b83068 100644 --- a/libcrystfel/src/image-hdf5.c +++ b/libcrystfel/src/image-hdf5.c @@ -1221,3 +1221,9 @@ struct event_list *image_hdf5_expand_frames(const DataTemplate *dtempl, } } + + +int is_hdf5_file(const char *filename) +{ + return H5Fis_hdf5(filename); +} |