From e13b2276d3949b3e7a185ddc8479ac65bfdfbf18 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 10 Jan 2024 14:19:26 +0100 Subject: GUI: Remove detector-shift The script has been replaced with align_detector --level=0. --- src/crystfel_gui.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index d0fab3b1..a51ec016 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -467,34 +467,6 @@ static gint rescan_sig(GtkWidget *widget, struct crystfelproject *proj) } -static gint detector_shift_sig(GtkWidget *widget, struct crystfelproject *proj) -{ - struct gui_indexing_result *res = current_result(proj); - if ( res != NULL ) { - GError *error = NULL; - const gchar *args[64]; - GSubprocess *sp; - int i; - args[0] = "detector-shift"; - args[1] = "--"; - for ( i=0; in_streams, 60); i++ ) { - args[2+i] = res->streams[i]; - } - args[2+res->n_streams] = NULL; - - sp = g_subprocess_newv(args, G_SUBPROCESS_FLAGS_NONE, &error); - if ( sp == NULL ) { - ERROR("Failed to invoke detector-shift: %s\n", - error->message); - g_error_free(error); - } - } else { - ERROR("Select indexing result first!\n"); - } - return FALSE; -} - - static gint peakogram_sig(GtkWidget *widget, struct crystfelproject *proj) { struct gui_indexing_result *res = current_result(proj); @@ -825,7 +797,6 @@ static void add_menu_bar(struct crystfelproject *proj, GtkWidget *vbox) " " " " " " - " " " " "" "" @@ -852,8 +823,6 @@ static void add_menu_bar(struct crystfelproject *proj, GtkWidget *vbox) G_CALLBACK(rescan_sig) }, { "JumpFrameAction", NULL, "Jump to frame", NULL, NULL, G_CALLBACK(goto_frame_sig) }, - { "DetectorShiftAction", NULL, "Check detector shift", NULL, NULL, - G_CALLBACK(detector_shift_sig) }, { "PeakogramAction", NULL, "Check detector saturation (peakogram)", NULL, NULL, G_CALLBACK(peakogram_sig) }, -- cgit v1.2.3