aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-09-14 12:51:38 +0200
committerThomas White <taw@physics.org>2021-09-17 11:09:02 +0200
commit86ed4526e5f39651e62d597de4bf255b11a7972e (patch)
tree4bc4989be66e44d652b8da1e4f1c24bdffa67a57
parent3d55c5c01aaeedfdcb16ee079080b26a3e8c6830 (diff)
Handle headers from in-memory HDF5s
-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;