diff options
author | Thomas White <taw@physics.org> | 2014-11-28 11:31:11 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-11-28 11:34:37 +0100 |
commit | 1a629dbe395a85ccc600340fe9ef6366e918e42c (patch) | |
tree | fbb8883db0abe10a6b51854b2f4cb084003f5cc4 /src/process_image.c | |
parent | 9e5e52b5eae1c883b8d51efbe2cdc37fb20f6d8e (diff) |
indexamajig: Report implausibly negative reflections only after final integration
Diffstat (limited to 'src/process_image.c')
-rw-r--r-- | src/process_image.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/process_image.c b/src/process_image.c index f5b2dbed..0982bada 100644 --- a/src/process_image.c +++ b/src/process_image.c @@ -260,6 +260,15 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs, ERROR("Error writing stream file.\n"); } + int n = 0; + for ( i=0; i<image.n_crystals; i++ ) { + n += crystal_get_num_implausible_reflections(image.crystals[i]); + } + if ( n > 0 ) { + STATUS("Warning: %i implausibly negative reflection%s in %s.\n", + n, n>1?"s":"", image.filename); + } + for ( i=0; i<image.n_crystals; i++ ) { cell_free(crystal_get_cell(image.crystals[i])); reflist_free(crystal_get_reflections(image.crystals[i])); |