From a9adb8fc595b232524fad7101d3c17af6347d959 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 6 Jan 2010 16:45:08 +0100 Subject: Break off indexing peak search --- src/dirax.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/dirax.c b/src/dirax.c index 02837c9d..c9c5f010 100644 --- a/src/dirax.c +++ b/src/dirax.c @@ -371,13 +371,10 @@ static int map_position(struct image *image, double x, double y, } -void index_pattern(struct image *image) +static void search_peaks(struct image *image) { FILE *fh; - unsigned int opts; - int saved_stderr; int x, y; - GMainLoop *ml; fh = fopen("xfel.drx", "w"); if ( !fh ) { @@ -407,6 +404,17 @@ void index_pattern(struct image *image) } fclose(fh); +} + + +void index_pattern(struct image *image) +{ + unsigned int opts; + int saved_stderr; + GMainLoop *ml; + + /* Do peak search and splurge out 'xfel.drx' */ + search_peaks(image); saved_stderr = dup(STDERR_FILENO); image->dirax_pid = forkpty(&image->dirax_pty, NULL, NULL, NULL); -- cgit v1.2.3