From 75b1335652f292b5a211c1ba03637d70dd5b0995 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 21 Jul 2017 11:08:57 +0200 Subject: Add a warning about mask_file when mask is not set --- libcrystfel/src/detector.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index e3b351ff..6834d4c5 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -1536,6 +1536,13 @@ struct detector *get_detector_geometry_2(const char *filename, reject = 1; } + if ( (p->mask_file != NULL) && (p->mask == NULL) ) { + ERROR("You have specified 'mask_file' but not 'mask'. " + "'mask_file' will therefore have no effect. " + "(panel %s)\n", p->name); + reject = 1; + } + /* The default rail direction */ if ( isnan(p->rail_x) ) { p->rail_x = 0.0; -- cgit v1.2.3