aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image-hdf5.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-07-02 09:20:29 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:44 +0200
commit226c51876c243a566f491f1b887bd503127c78de (patch)
tree91c1bcd7bb899bc6529391b31ebefbec2b48aff8 /libcrystfel/src/image-hdf5.c
parent546a3b7e96a4a914285b0284719f3f54d810728b (diff)
Recognise .cxi extension as HDF5
Diffstat (limited to 'libcrystfel/src/image-hdf5.c')
-rw-r--r--libcrystfel/src/image-hdf5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c
index d13a0dae..30bb1939 100644
--- a/libcrystfel/src/image-hdf5.c
+++ b/libcrystfel/src/image-hdf5.c
@@ -1649,5 +1649,6 @@ int is_hdf5_file(const char *filename)
ext = filename_extension(filename, NULL);
if ( ext == NULL ) return 0;
- return (strcmp(ext, ".h5") == 0);
+ return ( (strcmp(ext, ".h5") == 0)
+ || (strcmp(ext, ".cxi") == 0) );
}