aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-07-09 16:56:07 +0200
committerThomas White <taw@physics.org>2018-07-09 16:56:30 +0200
commitae98d68749f58d63b2deb0c2d056fb567046bf8b (patch)
tree56d214da068a959bf16ba913ae5cf866859fe6b7 /libcrystfel/src/index.c
parent177af3bd9f28821f153b1ed4e447b696242a8923 (diff)
Add number of indexing attempts to stream
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r--libcrystfel/src/index.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 4ff4405a..b846574d 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -851,7 +851,10 @@ void index_pattern_2(struct image *image, IndexingPrivate *ipriv, int *ping)
/* Stop now if the pattern is indexed (don't try again for more
* crystals with a different indexing method) */
- if ( success ) break;
+ if ( success ) {
+ image->n_indexing_tries = ntry;
+ break;
+ }
}