aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-01-08 11:45:35 +0100
committerThomas White <taw@physics.org>2021-01-08 13:16:38 +0100
commit3410f0a68f889bc6d94f52904abe5a68ba2fe19a (patch)
tree809da5df1c5c21d85989aeb8907d72c80b6a848b /libcrystfel/src
parentd6bfd45c3cd48023532fcc40021a8c98d18e05bf (diff)
Update documentation about max_adu, and add a warning
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/datatemplate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c
index 0da913d4..ac07abda 100644
--- a/libcrystfel/src/datatemplate.c
+++ b/libcrystfel/src/datatemplate.c
@@ -550,6 +550,9 @@ static int parse_field_for_panel(struct panel_template *panel, const char *key,
panel->pixel_pitch = 1.0/atof(val);
} else if ( strcmp(key, "max_adu") == 0 ) {
panel->max_adu = atof(val);
+ ERROR("WARNING: It's usually better not to set max_adu "
+ "in the geometry file. Use --max-adu during "
+ "merging instead.\n");
} else if ( strcmp(key, "flag_equal") == 0 ) {
if ( add_flag_value(panel, atof(val), FLAG_EQUAL) ) {