aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-01-20 14:59:55 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:43 +0100
commitfb190928c9bacc216728d66bda30c7b83692b00b (patch)
tree1eaef938d7b8c9594aa65b8461ae1e5f6a71d439 /libcrystfel
parent66243d21c5e626506c4bfe55d58075d937204681 (diff)
Allow "coffset" default to be set
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/detector.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index ba2890c8..5b0bad41 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -663,6 +663,8 @@ static void parse_toplevel(struct detector *det, const char *key,
det->defaults.peak_sep = atof(val);
} else if ( strcmp(key, "integr_radius") == 0 ) {
det->defaults.integr_radius = atof(val);
+ } else if ( strcmp(key, "coffset") == 0 ) {
+ det->defaults.coffset = atof(val);
} else if ( parse_field_for_panel(&det->defaults, key, val, det) ) {
ERROR("Unrecognised top level field '%s'\n", key);
}