aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-08-10 16:45:38 +0200
committerThomas White <taw@physics.org>2016-08-10 16:45:38 +0200
commit24d7be7edf6564459b006327a097adc884b7fa7e (patch)
treee0697eeb6fa13c90ee3a1f29fd043fdaea2df34d /libcrystfel
parentdd5d51821a47a822a3c707143ff3979e566cfbbb (diff)
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.
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/detector.c1
1 files changed, 1 insertions, 0 deletions
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 */