aboutsummaryrefslogtreecommitdiff
path: root/src/gui_index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-09-07 15:54:19 +0200
committerThomas White <taw@physics.org>2020-09-07 17:11:26 +0200
commitbb376563c98cd7348d676c939379c924c5efe040 (patch)
tree438819b923ec044a217000dc95839ac58f6f6479 /src/gui_index.c
parent6cd1f4a5a9c03559b71d44190270f12d3ad35bc5 (diff)
Show cell parameters after "Index this frame"
Diffstat (limited to 'src/gui_index.c')
-rw-r--r--src/gui_index.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui_index.c b/src/gui_index.c
index b8e1aa7e..d0790e4c 100644
--- a/src/gui_index.c
+++ b/src/gui_index.c
@@ -473,6 +473,18 @@ static void run_indexing_once(struct crystfelproject *proj)
proj->indexing_params.overpredict);
cleanup_indexing(ipriv);
+
+ STATUS("Number of crystals: %i\n",
+ proj->cur_image->n_crystals);
+ for ( i=0; i<proj->cur_image->n_crystals; i++ ) {
+ double a, b, c, al, be, ga;
+ cell_get_parameters(crystal_get_cell(proj->cur_image->crystals[i]),
+ &a, &b, &c, &al, &be, &ga);
+ STATUS(" %2i: %.2f %.2f %.2f A, %.2f %.2f %.2f deg\n",
+ i, a*1e10, b*1e10, c*1e10,
+ rad2deg(al), rad2deg(be), rad2deg(ga));
+ }
+
}