From 928f3b77afd7f0748473148469f408f43cda1959 Mon Sep 17 00:00:00 2001
From: ahmedk <karim.ahmed@xfel.eu>
Date: Tue, 27 Feb 2024 13:45:56 +0100
Subject: [PATCH] rename check_shutter to display_shutter_config and avoid
 looking at unavailable sources or datasets

---
 notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb
index a0cb8b503..d1b5b794b 100644
--- a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb
+++ b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb
@@ -183,7 +183,7 @@
     "from cal_tools.step_timing import StepTimer\n",
     "from cal_tools.tools import (\n",
     "    calcat_creation_time,\n",
-    "    check_shutter,\n",
+    "    display_shutter_config,\n",
     "    map_modules_from_folder,\n",
     "    module_index_to_qm,\n",
     "    write_constants_fragment,\n",
@@ -523,7 +523,7 @@
     "        cell_sel = LitFrameSelection(r, train_ids, max_pulses, energy_threshold, use_super_selection)\n",
     "        cell_sel.print_report()\n",
     "        if np.count_nonzero(r.nLitFrame.value) == 0:  # No lit frames.\n",
-    "            check_shutter(dc, instrument, karabo_id_control)\n",
+    "            display_shutter_config(dc, instrument, karabo_id_control)\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