aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-22 17:35:06 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:59 +0100
commitc68ee0a5c446023b7f550d723c8f3e8b109b9bc5 (patch)
tree49412bb958e032703f63e82ff54c8e66d321a191 /src/reflections.c
parent0c5b842c2f991e57df4e8acc2438ffe7ee25e410 (diff)
compare_hkl: Reject reflections with low SNR
Diffstat (limited to 'src/reflections.c')
-rw-r--r--src/reflections.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/reflections.c b/src/reflections.c
index 9a1a2910..4c3cf527 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -102,7 +102,7 @@ void write_reflections(const char *filename, ReflItemList *items,
*/
ReflItemList *read_reflections(const char *filename,
double *intensities, double *phases,
- unsigned int *counts)
+ unsigned int *counts, double *esds)
{
FILE *fh;
char *rval;
@@ -163,6 +163,9 @@ ReflItemList *read_reflections(const char *filename,
if ( counts != NULL ) {
set_count(counts, h, k, l, cts);
}
+ if ( esds != NULL ) {
+ set_sigma(esds, h, k, l, sigma);
+ }
} while ( rval != NULL );