aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/image.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index 3593f52b..3448421e 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -764,6 +764,7 @@ int image_create_dp_bad_sat(struct image *image,
for ( i=0; i<dtempl->n_panels; i++ ) {
+ int j;
size_t nel = PANEL_WIDTH(&dtempl->panels[i]) * PANEL_HEIGHT(&dtempl->panels[i]);
image->dp[i] = malloc(nel*sizeof(float));
@@ -785,6 +786,10 @@ int image_create_dp_bad_sat(struct image *image,
return 1;
}
+ for ( j=0; j<nel; j++ ) {
+ image->sat[i][j] = INFINITY;
+ }
+
}
return 0;