diff options
-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); |