aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-12-05 12:16:29 +0100
committerThomas White <taw@physics.org>2013-12-05 12:16:29 +0100
commit8f8c85b317bd2028cdc30ff40115b8f9f227c371 (patch)
tree76435eaa19a5433a8f27c22614b2e7a5935a29e6
parent7addffc52f2ac1f6af976b5d633ddcbad49dce46 (diff)
Additions to show_peak_box()
-rw-r--r--libcrystfel/src/integration.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c
index b51ef7f7..98239607 100644
--- a/libcrystfel/src/integration.c
+++ b/libcrystfel/src/integration.c
@@ -340,6 +340,7 @@ static void show_peak_box(struct intcontext *ic, struct peak_box *bx)
#ifdef HAVE_CURSES_COLOR
int q;
signed int h, k, l;
+ double fs, ss;
initscr();
clear();
@@ -349,7 +350,9 @@ static void show_peak_box(struct intcontext *ic, struct peak_box *bx)
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);
+ get_detector_pos(bx->refl, &fs, &ss);
+ printw("Indices %i %i %i\nPosition fs = %.1f, ss = %.1f\n\n",
+ h, k, l, fs, ss);
printw("Pixel values:\n");
for ( q=ic->w-1; q>=0; q-- ) {
@@ -392,7 +395,7 @@ static void show_peak_box(struct intcontext *ic, struct peak_box *bx)
printw("\nIntensity = %.2f +/- %.2f\n", get_intensity(bx->refl),
get_esd_intensity(bx->refl));
- printw("\n\n");
+ printw("\n\nPress any key to continue processing...\n\n");
refresh();
getch();