diff options
author | Thomas White <taw@physics.org> | 2024-12-12 10:25:25 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-12-12 10:25:25 +0100 |
commit | a58fb559465f79b034c5425663ac3fb4a805eef5 (patch) | |
tree | 4a445533ef27199f1cbc3b8c7b5244b4ac970775 | |
parent | 89e565cb4a740f18d19af5d3ef0b33406dfd08ae (diff) |
indexamajig: Add a load of set_last_task calls
"indexing:finalisation" covers a lot of steps, and jobs seem to have
been hanging there recently. This should help unblock the pipeline.
-rw-r--r-- | libcrystfel/src/index.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 66b6e5de..fcdd7060 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -672,6 +672,7 @@ static int try_indexer(struct image *image, IndexingMethod indm, crystal_set_mosaicity(cr, 0.0); /* Pre-refinement unit cell check if requested */ + set_last_task("indexing:pre-refine-cell-check"); profile_start("prerefine-cell-check"); r = check_cell(ipriv->flags, cr, ipriv->target_cell, ipriv->tolerance); @@ -686,6 +687,7 @@ static int try_indexer(struct image *image, IndexingMethod indm, { int r; profile_start("refine"); + set_last_task("indexing:prediction-refinement"); r = refine_prediction(image, cr, mille, max_mille_level); profile_end("refine"); if ( r ) { @@ -696,6 +698,7 @@ static int try_indexer(struct image *image, IndexingMethod indm, /* After refinement unit cell check if requested */ profile_start("postrefine-cell-check"); + set_last_task("indexing:post-refine-cell-check"); if ( (ipriv->flags & INDEXING_CHECK_CELL) && !compare_cell_parameters(crystal_get_cell(cr), ipriv->target_cell, ipriv->tolerance) ) @@ -707,6 +710,7 @@ static int try_indexer(struct image *image, IndexingMethod indm, profile_end("postrefine-cell-check"); /* Peak alignment check if requested */ + set_last_task("indexing:peak-check"); if ( ipriv->flags & INDEXING_CHECK_PEAKS ) { int mm = ipriv->flags & INDEXING_MULTI; @@ -721,6 +725,7 @@ static int try_indexer(struct image *image, IndexingMethod indm, /* Check if cell is too similar to existing ones */ profile_start("cell-compare-to-others"); + set_last_task("indexing:compare-to-others"); for ( j=0; j<this_crystal; j++ ) { Crystal *that_cr = image->crystals[j].cr; @@ -742,6 +747,7 @@ static int try_indexer(struct image *image, IndexingMethod indm, } profile_end("cell-compare-to-others"); + set_last_task("indexing:write-mille"); if ( (mille != NULL) && !crystal_get_user_flag(cr) ) { profile_start("mille-write"); crystfel_mille_write_record(mille); @@ -750,6 +756,7 @@ static int try_indexer(struct image *image, IndexingMethod indm, } + set_last_task("indexing:remove-flagged"); n_bad = remove_flagged_crystals(image); assert(r >= n_bad); |