diff options
Diffstat (limited to 'src/check_hkl.c')
-rw-r--r-- | src/check_hkl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_hkl.c b/src/check_hkl.c index 650895ec..bf2a0ba1 100644 --- a/src/check_hkl.c +++ b/src/check_hkl.c @@ -243,6 +243,8 @@ static void plot_shells(const double *ref, ReflItemList *items, UnitCell *cell, continue; } + if ( !isfinite(val/esd) ) continue; + /* measured[bin] was done earlier */ measurements[bin] += lookup_count(counts, h, k, l); snr[bin] += val / esd; |