From 8e58fc5c9eaf45ad095462cc5f06f53cdd8b8773 Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Mon, 4 Mar 2024 16:58:41 +0100 Subject: [PATCH] remove display shutter configuration --- notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb index 4ed46d2ea..166257f9e 100644 --- a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb +++ b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb @@ -183,7 +183,6 @@ "from cal_tools.step_timing import StepTimer\n", "from cal_tools.tools import (\n", " calcat_creation_time,\n", - " display_shutter_config,\n", " map_modules_from_folder,\n", " module_index_to_qm,\n", " write_constants_fragment,\n", @@ -521,10 +520,13 @@ " get_data = {'auto': litfrm.read_or_process, 'offline': litfrm.process, 'online': litfrm.read}\n", " r = get_data[use_litframe_finder]()\n", " cell_sel = LitFrameSelection(r, train_ids, max_pulses, energy_threshold, use_super_selection)\n", - " print(f\"{cell_sel.msg()}/n\")\n", + " print(f\"{cell_sel.msg()}\\n\")\n", " cell_sel.print_report()\n", " if np.count_nonzero(r.nLitFrame.value) == 0: # No lit frames.\n", - " display_shutter_config(dc, instrument, karabo_id_control)\n", + " warning(\n", + " \"Warning: No lit frames identified using AGIPD LitFrameFinder.\"\n", + " \" Offline correction will not be performed.\")\n", + " sys.exit(0)\n", " except LitFrameFinderError as err:\n", " warning(f\"Cannot use AgipdLitFrameFinder due to:\\n{err}\")\n", " cell_sel = CellRange(max_pulses, max_cells=mem_cells)\n", -- GitLab