diff --git a/notebooks/REMI/REMI_Digitize_and_Transform.ipynb b/notebooks/REMI/REMI_Digitize_and_Transform.ipynb
index 68c04c16c3af963b6f01b462f005299e23bfc0c9..95b065bd9839b49d92acd326946b82f3471bd779 100644
--- a/notebooks/REMI/REMI_Digitize_and_Transform.ipynb
+++ b/notebooks/REMI/REMI_Digitize_and_Transform.ipynb
@@ -298,8 +298,7 @@
     "        if len(np.unique(deltas)) > 1:\n",
     "            for delta in deltas:\n",
     "                pulse_deltas.add(delta)\n",
-    "                \n",
-    "                \n",
+    "\n",
     "    if len(pulse_deltas) > 1:\n",
     "        delta_str = ', '.join([str(x) for x in sorted(pulse_deltas)])\n",
     "        print(f'WARNING: Different pulse lengths (PPT: {delta_str}) encountered within single trains, '\n",
@@ -500,7 +499,7 @@
     "        if not finite_edges.any():\n",
     "            continue\n",
     "            \n",
-    "        pulse_idx = finite_edges.nonzero()[0][0]\n",
+    "        pulse_idx = np.uint64(finite_edges.nonzero()[0][0])  # Is combined with other uint64 values below.\n",
     "        train_idx = (pulse_idx >= pulse_offsets).nonzero()[0][-1]\n",
     "        trigger = triggers[pulse_idx]\n",
     "        \n",