diff options
author | Thomas White <taw@bitwiz.org.uk> | 2012-01-20 14:59:55 -0800 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:43 +0100 |
commit | fb190928c9bacc216728d66bda30c7b83692b00b (patch) | |
tree | 1eaef938d7b8c9594aa65b8461ae1e5f6a71d439 | |
parent | 66243d21c5e626506c4bfe55d58075d937204681 (diff) |
Allow "coffset" default to be set
-rw-r--r-- | libcrystfel/src/detector.c | 2 |
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); } |