aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-11-24 16:58:40 -0800
committerThomas White <taw@physics.org>2013-11-24 16:58:40 -0800
commit9e40e35819ecd1c9d0f325f85d83fb50a3ba16e9 (patch)
tree4694b2c25be008711123784ceaeb00641d023ebe
parent40bc547d4bc61f05e18eb82cac7a1994bbbdce6d (diff)
show_peak_box(): Add indices and tidy up
-rw-r--r--libcrystfel/src/integration.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c
index 8c5347cb..9a702a7b 100644
--- a/libcrystfel/src/integration.c
+++ b/libcrystfel/src/integration.c
@@ -339,6 +339,7 @@ static void show_peak_box(struct intcontext *ic, struct peak_box *bx)
{
#ifdef HAVE_CURSES_COLOR
int q;
+ signed int h, k, l;
initscr();
clear();
@@ -347,6 +348,9 @@ static void show_peak_box(struct intcontext *ic, struct peak_box *bx)
init_pair(2, COLOR_WHITE, COLOR_RED); /* Peak */
init_pair(3, COLOR_BLACK, COLOR_CYAN); /* Blackhole */
+ get_indices(bx->refl, &h, &k, &l);
+ printw("Indices %i %i %i\n\n", h, k, l);
+
printw("Pixel values:\n");
for ( q=ic->w-1; q>=0; q-- ) {
@@ -381,7 +385,7 @@ static void show_peak_box(struct intcontext *ic, struct peak_box *bx)
}
if ( ic->meth & INTEGRATION_PROF2D ) {
- printw("\nReference profile number %i, ", bx->rp);
+ printw("\n");
show_reference_profile(ic, bx->rp);
}