diff options
author | Thomas White <taw@physics.org> | 2010-11-17 14:35:50 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:06 +0100 |
commit | e2ff3965b0f43e3750d13e375d7a1dae72ac90ff (patch) | |
tree | 3cd95fea41bd3fe8eae797f6ff3a511ec186c40a /src/check_hkl.c | |
parent | 2f942f0a3096242ce5623cf5aae8d33253766bad (diff) |
Fix stability of SNRs
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; |