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 | |
parent | 9e5e52b5eae1c883b8d51efbe2cdc37fb20f6d8e (diff) |
indexamajig: Report implausibly negative reflections only after final integration
-rw-r--r-- | libcrystfel/src/integration.c | 6 | ||||
-rw-r--r-- | src/process_image.c | 9 |
2 files changed, 9 insertions, 6 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c index edc6e7eb..05060f70 100644 --- a/libcrystfel/src/integration.c +++ b/libcrystfel/src/integration.c @@ -1806,12 +1806,6 @@ static void integrate_rings(IntegrationMethod meth, crystal_set_num_saturated_reflections(cr, ic.n_saturated); crystal_set_num_implausible_reflections(cr, ic.n_implausible); - - if ( ic.n_implausible ) { - STATUS("Warning: %i implausibly negative reflection%s in %s.\n", - ic.n_implausible, ic.n_implausible>1?"s":"", - image->filename); - } } 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])); |