From 2c4b899909982bcfabdbb45c6a0e8842b12c3434 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 14 Sep 2021 14:41:44 +0200 Subject: Warn if in-memory CBF is attempted --- libcrystfel/src/image-cbf.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/image-cbf.c b/libcrystfel/src/image-cbf.c index d599141c..de9fc75a 100644 --- a/libcrystfel/src/image-cbf.c +++ b/libcrystfel/src/image-cbf.c @@ -616,6 +616,11 @@ int image_cbf_read(struct image *image, float *data; int w, h; + if ( image->data_block != NULL ) { + ERROR("In-memory CBF not (yet!) implemented.\n"); + return 1; + } + if ( access(image->filename, R_OK) == -1 ) { ERROR("File does not exist or cannot be read: %s\n", image->filename); -- cgit v1.2.3