diff options
author | Thomas White <taw@physics.org> | 2011-03-28 17:58:25 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:22 +0100 |
commit | 49c9f1e1e7a01c09c1cebd99ca1dc6c32eec284d (patch) | |
tree | 64ecf2aa8c2649cc1e97d2526736583ee7a1a8d4 | |
parent | 5a13c05358fab2c8601f7e15d0eb5ba08b0abd1f (diff) |
Don't write out peaks which could not be integrated
-rw-r--r-- | src/reflist-utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/reflist-utils.c b/src/reflist-utils.c index a327b18b..ba212bd1 100644 --- a/src/reflist-utils.c +++ b/src/reflist-utils.c @@ -188,6 +188,9 @@ void write_reflections_to_file(FILE *fh, RefList *list, UnitCell *cell) esd_i = get_esd_intensity(refl); red = get_redundancy(refl); + /* Reflections with redundancy = 0 are not written */ + if ( red == 0 ) continue; + if ( cell != NULL ) { s = 2.0 * resolution(cell, h, k, l); snprintf(res, 16, "%10.2f", s/1e9); |