diff --git a/cal_tools/cal_tools/agipdlib.py b/cal_tools/cal_tools/agipdlib.py
index 1f3af4b12d63b6b4625f5979c546b837977c4e33..8b1fd3102008b495e8ec1bbd6dba120fbdc5d0d0 100644
--- a/cal_tools/cal_tools/agipdlib.py
+++ b/cal_tools/cal_tools/agipdlib.py
@@ -15,8 +15,10 @@ from cal_tools.agipdutils import (
     match_asic_borders,
     melt_snowy_pixels,
 )
+from cal_tools.cython import agipdalgs as calgs
 from cal_tools.enums import AgipdGainMode, BadPixels, SnowResolution
 from cal_tools.tools import get_constant_from_db_and_time
+from iCalibrationDB import Conditions
 
 
 def get_num_cells(fname, loc, module):
@@ -125,6 +127,7 @@ def get_gain_setting(fname: str, h5path_ctrl: str) -> int:
         else:
             raise ValueError('Could not derive gain setting from setupr and patternTypeIndex')  # noqa
 
+
 def get_gain_mode(fname: str, h5path_ctrl: str) -> AgipdGainMode:
     """Returns the gain mode (adaptive or fixed) from slow data"""
 
diff --git a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
index b8e05be8805086d027a2ae86fa5012849d61597f..d9664f4fdec44f8e390c8327a5e3c07de318fd77 100644
--- a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
+++ b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
@@ -77,11 +77,9 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "# imports and things that do not usually need to be changed\n",
     "from datetime import datetime\n",
     "\n",
     "import dateutil.parser\n",
-    "\n",
     "import os\n",
     "from collections import OrderedDict\n",
     "from typing import Tuple\n",
@@ -436,11 +434,37 @@
     "        else:\n",
     "            continue\n",
     "        inp.append((fname_in, i, gg))\n",
+<<<<<<< HEAD
+||||||| 335796a
+    "        \n",
+    "    gg += 1\n",
+    "\n",
+    "p = partial(characterize_module, IL_MODE, max_cells,\n",
+    "           (thresholds_offset_hard, thresholds_offset_sigma,\n",
+    "            thresholds_noise_hard, thresholds_noise_sigma),\n",
+    "            rawversion, karabo_id, acq_rate, h5path, h5path_idx,\n",
+    "           control_names, karabo_id_control)\n",
+=======
     "\n",
     "with multiprocessing.Pool() as pool:\n",
     "    results = pool.starmap(characterize_module, inp)\n",
+>>>>>>> bd98a3c6b5a10f7347ba8a74d0ce895565db9ca5
     "\n",
+<<<<<<< HEAD
+    "with multiprocessing.Pool() as pool:\n",
+    "    results = pool.starmap(characterize_module, inp)\n",
+    "\n",
+    "for offset, noise, gains, gains_std, gg, bp, thiscell, thisacq in results:\n",
+||||||| 335796a
+    "# Don't remove. Used for Debugging.\n",
+    "#results = list(map(p, inp))\n",
+    "results = view.map_sync(p, inp)\n",
+    "\n",
+    "for ii, r in enumerate(results):\n",
+    "    offset, noise, gains, gains_std, gg, bp, thiscell, thisacq = r\n",
+=======
     "for offset, noise, gains, gains_std, gg, bp, thiscell, thisacq in results:\n",
+>>>>>>> bd98a3c6b5a10f7347ba8a74d0ce895565db9ca5
     "    all_cells.append(thiscell)\n",
     "    all_acq_rate.append(thisacq)\n",
     "    for i in modules:\n",