aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-10-22 11:44:44 +0200
committerThomas White <taw@physics.org>2020-10-22 11:44:44 +0200
commit5d09bcdda5ee7bcec251051eb24ec41e3f06b650 (patch)
treefb911285ad01f79ad19ac503f74c3e8894c61c28 /libcrystfel/src
parenta8ae2b0fb99b29dd85f78d2fe6753bc033f8938a (diff)
image_expand_frames: When files are not HDF5, just return null events
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/image.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index 8ad091ba..52e7d91f 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -935,8 +935,13 @@ char **image_expand_frames(const DataTemplate *dtempl,
return image_hdf5_expand_frames(dtempl, filename,
n_frames);
} else {
- ERROR("Can only expand HDF5 files\n");
- return NULL;
+ char **list;
+ list = malloc(sizeof(char *));
+ if ( list == NULL ) return NULL;
+ list[0] = strdup("//");
+ if ( list[0] == NULL ) return NULL;
+ *n_frames = 1;
+ return list;
}
}