From 8f099e4022918b7975fe325437f692a1b101241f Mon Sep 17 00:00:00 2001
From: ahmedk <karim.ahmed@xfel.eu>
Date: Tue, 12 Apr 2022 13:26:58 +0200
Subject: [PATCH] Remove wrong import in FF AGIPD notebook

---
 ...haracterize_AGIPD_Gain_FlatFields_NBC.ipynb | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/notebooks/AGIPD/Characterize_AGIPD_Gain_FlatFields_NBC.ipynb b/notebooks/AGIPD/Characterize_AGIPD_Gain_FlatFields_NBC.ipynb
index 5ce10fa6e..fab1aa797 100644
--- a/notebooks/AGIPD/Characterize_AGIPD_Gain_FlatFields_NBC.ipynb
+++ b/notebooks/AGIPD/Characterize_AGIPD_Gain_FlatFields_NBC.ipynb
@@ -90,7 +90,6 @@
     "import numpy as np\n",
     "import sharedmem\n",
     "import XFELDetAna.xfelpyanatools as xana\n",
-    "from cal_tools.agipdlib import get_bias_voltage\n",
     "from cal_tools.agipdutils_ff import (\n",
     "    BadPixelsFF,\n",
     "    any_in,\n",
@@ -125,23 +124,6 @@
     "module = modules[0]"
    ]
   },
-  {
-   "cell_type": "code",
-   "execution_count": null,
-   "metadata": {},
-   "outputs": [],
-   "source": [
-    "# This is never used in this notebook and should be removed\n",
-    "\n",
-    "# if bias_voltage == 0:\n",
-    "#     # Read the bias voltage from files, if recorded.\n",
-    "#     # If not available, make use of the historical voltage the detector is running at\n",
-    "#     control_filename = f'{raw_folder}/r{run:04d}/RAW-R{run:04d}-{karabo_da_control}-S00000.h5'\n",
-    "#     bias_voltage = get_bias_voltage(control_filename, karabo_id_control)\n",
-    "#     bias_voltage = bias_voltage if bias_voltage is not None else 300\n",
-    "# print(f\"Bias voltage: {bias_voltage}V\")"
-   ]
-  },
   {
    "cell_type": "code",
    "execution_count": null,
-- 
GitLab