aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorHelen Ginn <helen@strubi.ox.ac.uk>2018-04-30 10:48:00 +0200
committerThomas White <taw@physics.org>2018-05-02 09:46:15 +0200
commit5ca551032e2cc7e7391cd41be0599277363b58b6 (patch)
tree8a7b6bdcb3e25c8fe75fc9d2ed539aefeb001475 /libcrystfel
parent9a12096958cd9e47116bfac8ffa5de8f523ed81a (diff)
Limit distances of seeds only if cell seed count is quite high
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/taketwo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c
index 0b533f0f..398e6fcb 100644
--- a/libcrystfel/src/taketwo.c
+++ b/libcrystfel/src/taketwo.c
@@ -1480,9 +1480,9 @@ static int find_seeds(struct TakeTwoCell *cell, struct taketwo_private *tp)
for ( j=0; j<i; j++ ) {
/** Only check distances which are accumulatively less
- * than the limit */
+ * than the limit if we can easily generate seeds */
if (obs_vecs[j].distance + obs_vecs[i].distance >
- MAX_RECIP_DISTANCE) {
+ MAX_RECIP_DISTANCE && cell->seed_count > 100) {
continue;
}