From a5a2afdd91112da03f631c7119b01969dad11ef8 Mon Sep 17 00:00:00 2001
From: ahmedk <karim.ahmed@xfel.eu>
Date: Mon, 14 Mar 2022 12:52:55 +0100
Subject: [PATCH] [AGIPD][CORRECT] Show and use correct module index

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

diff --git a/notebooks/AGIPD/AGIPD_Retrieve_Constants_Precorrection.ipynb b/notebooks/AGIPD/AGIPD_Retrieve_Constants_Precorrection.ipynb
index 2cd11eb0b..ffc6e2fa1 100644
--- a/notebooks/AGIPD/AGIPD_Retrieve_Constants_Precorrection.ipynb
+++ b/notebooks/AGIPD/AGIPD_Retrieve_Constants_Precorrection.ipynb
@@ -247,7 +247,7 @@
     "    if local_mem_cells is None:\n",
     "        raise ValueError(\n",
     "            \"No raw images found for \"\n",
-    "            f\"{tools.module_index_to_qm(module_index)}({karabo_da}) for all sequences\")\n",
+    "            f\"{tools.module_index_to_qm(idx)}({karabo_da}) for all sequences\")\n",
     "\n",
     "    if acq_rate == 0.:\n",
     "        local_acq_rate = agipd_cond.get_acq_rate()\n",
@@ -288,7 +288,7 @@
     "\n",
     "        if slopes_ff_from_files and const_name in [\"SlopesFF\", \"BadPixelsFF\"]:\n",
     "            const_mdata[\"file-path\"] = (\n",
-    "                f\"{slopes_ff_from_files}/slopesff_bpmask_module_{tools.module_index_to_qm(module_index)}.h5\")  # noqa\n",
+    "                f\"{slopes_ff_from_files}/slopesff_bpmask_module_{tools.module_index_to_qm(idx)}.h5\")  # noqa\n",
     "            const_mdata[\"creation-time\"] = \"00:00:00\"\n",
     "            continue\n",
     "        \n",
-- 
GitLab