aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-01-10 14:19:26 +0100
committerThomas White <taw@physics.org>2024-01-10 16:18:28 +0100
commite13b2276d3949b3e7a185ddc8479ac65bfdfbf18 (patch)
treed5b974464ec4b175a765b213d17369f611052185 /src
parentcc2717022fca0fd6b24b1dba3aaa5173672a3223 (diff)
GUI: Remove detector-shift
The script has been replaced with align_detector --level=0.
Diffstat (limited to 'src')
-rw-r--r--src/crystfel_gui.c31
1 files changed, 0 insertions, 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; i<MIN(res->n_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)
" <menuitem name=\"rescan\" action=\"RescanAction\" />"
" <menuitem name=\"jumpframe\" action=\"JumpFrameAction\" />"
" <separator />"
- " <menuitem name=\"detectorshift\" action=\"DetectorShiftAction\" />"
" <menuitem name=\"peakogram\" action=\"PeakogramAction\" />"
"</menu>"
"<menu name=\"help\" action=\"HelpAction\">"
@@ -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) },