aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-04-20 11:42:42 +0200
committerThomas White <taw@physics.org>2021-04-20 11:42:42 +0200
commitbfbdeb24ab92b9a3171bc0581bccdfcd06d7aebc (patch)
tree091da83e7890fe551ba69529a289fa4399bd14c1 /libcrystfel
parentb22f6f524b52b2100818eb6b42cb984bf38a2373 (diff)
image_read_data_block: Set the correct data type
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index f41452bb..36bb0fba 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -1220,7 +1220,7 @@ struct image *image_read_data_block(const DataTemplate *dtempl,
image->data_block = data_block;
image->data_block_size = data_block_size;
- image->data_source_type = file_type(image->filename);
+ image->data_source_type = type;
if ( do_image_read(image, dtempl, no_image_data, no_mask_data) ) {
image_free(image);