From 86ed4526e5f39651e62d597de4bf255b11a7972e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 14 Sep 2021 12:51:38 +0200 Subject: Handle headers from in-memory HDF5s --- libcrystfel/src/image-hdf5.c | 8 +------- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3