diff --git a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
index e2714006da98ba29116e1d0196afa3e361ac7de4..6760fdb257efea096b964dade98b5b710653e08c 100644
--- a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
+++ b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
@@ -118,8 +118,6 @@
     "# insert control device if format string (does nothing otherwise)\n",
     "h5path_ctrl = h5path_ctrl.format(karabo_id_control)\n",
     "\n",
-    "gains = np.arange(3)\n",
-    "\n",
     "max_cells = mem_cells\n",
     "\n",
     "offset_runs = OrderedDict()\n",
@@ -557,7 +555,7 @@
     "                                          acquisition_rate=acq_rate,\n",
     "                                          gain_setting=gain_setting)\n",
     "\n",
-    "        # This should be used in case of running notebook \n",
+    "        # This should be used in case of running notebook\n",
     "        # by a different method other than myMDC which already\n",
     "        # sends CalCat info.\n",
     "        # TODO: Set db_module to \"\" by default in the first cell\n",