diff --git a/notebooks/LPD/LPDChar_Darks_NBC.ipynb b/notebooks/LPD/LPDChar_Darks_NBC.ipynb
index 008620e36e2ea2c14a77897ffc2ea5554232c924..1419df3433f7cbded710eed373b2f2b85d323e9f 100644
--- a/notebooks/LPD/LPDChar_Darks_NBC.ipynb
+++ b/notebooks/LPD/LPDChar_Darks_NBC.ipynb
@@ -330,7 +330,7 @@
     "        offset_g[cap][qm] = np.zeros(\n",
     "            (offset.shape[0], offset.shape[1], offset.shape[2], 3))\n",
     "        noise_g[cap][qm] = np.zeros_like(offset_g[cap][qm])\n",
-    "        badpix_g[cap][qm] = np.zeros_like(offset_g[cap][qm])\n",
+    "        badpix_g[cap][qm] = np.zeros_like(offset_g[cap][qm], dtype=np.uint32)\n",
     "        data_g[cap][qm] = np.full((ntrains, 3), np.nan)\n",
     "        ntest_g[cap][qm] = np.zeros_like(offset_g[cap][qm])\n",
     "\n",
@@ -1253,7 +1253,7 @@
    "name": "python",
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
-   "version": "3.6.7"
+   "version": "3.8.12"
   }
  },
  "nbformat": 4,