aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-07-09 11:44:23 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:45 +0200
commit91308a018a7a791459c0ee918d9cb2fa6aed768f (patch)
treebc126ddd7949c499922f6d480c8d5fe200e75afd
parent60d17122506a3f8b4c2b65993e724e224172ee76 (diff)
Set default event ID when reading from HDF5 with NULL event
-rw-r--r--libcrystfel/src/image-hdf5.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c
index d60d4d47..5c41ad90 100644
--- a/libcrystfel/src/image-hdf5.c
+++ b/libcrystfel/src/image-hdf5.c
@@ -544,6 +544,10 @@ struct image *image_hdf5_read(DataTemplate *dtempl,
return NULL;
}
+ if ( event == NULL ) {
+ event = "//";
+ }
+
/* Set all pointers to NULL for easier clean-up */
for ( i=0; i<dtempl->n_panels; i++ ) image->dp[i] = NULL;