diff options
author | Thomas White <taw@physics.org> | 2016-02-29 06:40:07 -0800 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-02-29 06:40:07 -0800 |
commit | 157b4f61155827567c1442c874930d7cd4b6c4c1 (patch) | |
tree | 07b7baa5c3db6337db9ec782fdff7949c53ed645 | |
parent | 7398acef30938214a94e816ff77f24992df869f2 (diff) |
Don't predict 000
-rw-r--r-- | libcrystfel/src/geometry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c index c9e30f4f..4c24f0bf 100644 --- a/libcrystfel/src/geometry.c +++ b/libcrystfel/src/geometry.c @@ -289,7 +289,7 @@ static Reflection *check_reflection(struct image *image, Crystal *cryst, /* Calculate partiality */ part = partiality(pmodel, h, k, l, image->serial, rlow, rhigh, pr); - if ( isnan(part) ) { + if ( isnan(part) && ((h!=0) || (k!=0) || (l!=0)) ) { ERROR("Assigning NAN partiality!\n"); ERROR("%3i %3i %3i rlow = %e, rhigh = %e\n", h, k, l, rlow, rhigh); |