From 24d7be7edf6564459b006327a097adc884b7fa7e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 10 Aug 2016 16:45:38 +0200 Subject: Set default clen_for_centering If the rail vector is +z (the default), then the value doesn't matter. However, it still mustn't be NaN. --- libcrystfel/src/detector.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index 4262f4be..6e81e311 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -1551,6 +1551,7 @@ struct detector *get_detector_geometry_2(const char *filename, if ( isnan(p->rail_x) ) p->rail_x = 0.0; if ( isnan(p->rail_y) ) p->rail_y = 0.0; if ( isnan(p->rail_z) ) p->rail_z = 1.0; + if ( isnan(p->clen_for_centering) ) p->clen_for_centering = 0.0; /* It's OK if the badrow direction is '0' */ /* It's not a problem if "no_index" is still zero */ -- cgit v1.2.3