aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-09-14 14:41:44 +0200
committerThomas White <taw@physics.org>2021-09-17 11:09:02 +0200
commit2c4b899909982bcfabdbb45c6a0e8842b12c3434 (patch)
tree35517766369f066ccc2b00233cc0e0a9463460c9 /libcrystfel
parent86ed4526e5f39651e62d597de4bf255b11a7972e (diff)
Warn if in-memory CBF is attempted
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/image-cbf.c5
1 files changed, 5 insertions, 0 deletions
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);