diff options
author | Thomas White <taw@physics.org> | 2017-09-15 15:42:30 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-09-15 15:42:30 +0200 |
commit | ca0d7a9e1982b55ae3891d8dbe7f05a79ed3e7f1 (patch) | |
tree | 97e04cfcf83da867663b0e9dae8a908433c8a47b /libcrystfel | |
parent | 228f4da5d30418f6176557d07d0b063f5ee6ac00 (diff) |
Perform peak alignment check if requested
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/index.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 94a66566..8c1f52e5 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -485,6 +485,16 @@ static int try_indexer(struct image *image, IndexingMethod indm, continue; } + /* Peak alignment check if requested */ + if ( ipriv->flags & INDEXING_CHECK_PEAKS ) + { + if ( !peak_sanity_check(image, &cr, 1) ) { + crystal_set_user_flag(cr, 1); + n_bad++; + continue; + } + } + /* Don't do similarity check if this crystal is bad */ if ( crystal_get_user_flag(cr) ) continue; |