From 6b4821c9c86b8c3bba8a0684e91e2c1ae18099e4 Mon Sep 17 00:00:00 2001
From: ahmedk <karim.ahmed@xfel.eu>
Date: Tue, 26 Nov 2024 09:43:50 +0100
Subject: [PATCH] rebase onto master

---
 notebooks/LPD/LPDChar_Darks_NBC.ipynb | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/notebooks/LPD/LPDChar_Darks_NBC.ipynb b/notebooks/LPD/LPDChar_Darks_NBC.ipynb
index 02baeea0c..7bf5ab874 100644
--- a/notebooks/LPD/LPDChar_Darks_NBC.ipynb
+++ b/notebooks/LPD/LPDChar_Darks_NBC.ipynb
@@ -319,10 +319,6 @@
     "        if len(cellids_missing):\n",
     "            raise ValueError(f\"No frames left for cells {cellids_missing} \"\n",
     "                             \"after discarding frames with wrong gain stage\")\n",
-    "\n",
-    "    elif (gains != gg).any():\n",
-    "        raise Exception(f\"Adaptive gain run {run_path} contains pixels \"\n",
-    "                        f\"in gain state other than expected {gg}\")\n",
     "    \n",
     "    im = reorder_axes(im,\n",
     "        from_order=('frames', 'slow_scan', 'fast_scan'),\n",
-- 
GitLab