diff options
author | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-08-19 23:13:58 +0000 |
---|---|---|
committer | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-08-19 23:13:58 +0000 |
commit | b31565d11bcb28ca33b4a51cb363549c46444cd8 (patch) | |
tree | 59c573a21eaae8c8e82f5491d7167ff0c854ae95 /src/main.c | |
parent | de770d8c43a57b1941e2f6942f75deb8c99475aa (diff) |
Preparation for handing precessed data
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@65 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -30,7 +30,7 @@ #include "qdrp.h" #include "ipr.h" #include "cache.h" -#include "structure.h" +#include "mapping.h" static gint main_method_window_response(GtkWidget *method_window, gint response, ControlContext *ctx) { @@ -56,6 +56,7 @@ static gint main_method_window_response(GtkWidget *method_window, gint response, gtk_widget_destroy(method_window); while ( gtk_events_pending() ) gtk_main_iteration(); + /* Load the input */ if ( ctx->inputfiletype == INPUT_QDRP ) { val = qdrp_read(ctx); } else if ( ctx->inputfiletype == INPUT_MRC ) { @@ -65,16 +66,18 @@ static gint main_method_window_response(GtkWidget *method_window, gint response, val=0; } + if ( ctx->inputfiletype != INPUT_CACHE ) { + mapping_create(ctx); + } + if ( (ctx->inputfiletype != INPUT_CACHE) && !val && (ctx->reflectionctx) ) { cache_save(ctx->filename, ctx->reflectionctx); } if ( !val && (ctx->rmode == RECONSTRUCTION_PREDICTION) && (ctx->reflectionctx) ) { - val = ipr_reduce(ctx); + val = ipr_refine(ctx); } - //dump_histogram(ctx->reflectionctx); - if ( !val && (ctx->reflectionctx) ) { displaywindow_open(ctx); } else { @@ -222,3 +225,4 @@ int main(int argc, char *argv[]) { return 0; } + |