aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-10-20 12:29:23 +0200
committerThomas White <taw@physics.org>2021-10-20 12:29:23 +0200
commit60483a2628ced4dff66e9f5140fa4b8be47ed6cf (patch)
treef95df0a2b06d9e8d89bb537a1964dd98e5127dc4
parent938451f0c83fdbb1de97e2a27b4bdecf218e37ed (diff)
Reject geometry file if wavelength isn't specified
-rw-r--r--libcrystfel/src/datatemplate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c
index cea963ec..37bb623c 100644
--- a/libcrystfel/src/datatemplate.c
+++ b/libcrystfel/src/datatemplate.c
@@ -1246,6 +1246,12 @@ DataTemplate *data_template_new_from_string(const char *string_in)
reject = 1;
}
+ if ( dt->wavelength_from == NULL ) {
+ ERROR("Geometry file must specify the wavelength "
+ "(value or location)\n");
+ reject = 1;
+ }
+
for ( i=0; i<dt->n_panels; i++ ) {
int j;