aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;