From 9e40e35819ecd1c9d0f325f85d83fb50a3ba16e9 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 24 Nov 2013 16:58:40 -0800 Subject: show_peak_box(): Add indices and tidy up --- libcrystfel/src/integration.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libcrystfel/src/integration.c') 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); } -- cgit v1.2.3