aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/image-hdf5.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c
index ab8d131d..df9e2c49 100644
--- a/libcrystfel/src/image-hdf5.c
+++ b/libcrystfel/src/image-hdf5.c
@@ -757,13 +757,7 @@ int image_hdf5_read_header_to_cache(struct image *image, const char *name)
int n_dim_vals;
int dim_val_pos;
- if ( access(image->filename, R_OK) == -1 ) {
- ERROR("File does not exist or cannot be read: %s\n",
- image->filename);
- return 1;
- }
-
- fh = H5Fopen(image->filename, H5F_ACC_RDONLY, H5P_DEFAULT);
+ fh = open_hdf5(image);
if ( fh < 0 ) {
ERROR("Couldn't open file (header): %s\n", image->filename);
return 1;