aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-09-23 19:20:52 +0200
committerThomas White <taw@physics.org>2023-09-23 19:33:08 +0200
commitcee7ee0b8a4cafa1f8f3c67518f86c895520f5a6 (patch)
treee69fe9b2fda910fb0a9b2db4f5a109da73b8430a /libcrystfel/src/image.h
parent048fea1904c81f4682606ef410fba303b552cd07 (diff)
image_create_dp_bad_sat: Don't worry about "sat"
The saturation array is created by create_satmap when needed, which takes care that all panels get an array (so we only have to check image->sat != NULL). The array created by image_create_dp_bad_sat was actually leaked! In any case, saturation maps are rarely used. We can do without the extra allocations. The routine name has been changed accordingly, to prevent future confusion.
Diffstat (limited to 'libcrystfel/src/image.h')
-rw-r--r--libcrystfel/src/image.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/image.h b/libcrystfel/src/image.h
index 949ac7d1..8930ffe7 100644
--- a/libcrystfel/src/image.h
+++ b/libcrystfel/src/image.h
@@ -265,8 +265,8 @@ extern ImageFeatureList *image_read_peaks(const DataTemplate *dtempl,
extern char **image_expand_frames(const DataTemplate *dtempl,
const char *filename, int *nframes);
-extern int image_create_dp_bad_sat(struct image *image,
- const DataTemplate *dtempl);
+extern int image_create_dp_bad(struct image *image,
+ const DataTemplate *dtempl);
extern int image_set_zero_data(struct image *image,
const DataTemplate *dtempl);