diff --git a/notebooks/Jungfrau/Jungfrau_darks_Summary_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_darks_Summary_NBC.ipynb
index 55be915015324c3668b9e5f2d32590ee4d0ae485..08494dc42112fba9e6135c7291795ff1d4c4e048 100644
--- a/notebooks/Jungfrau/Jungfrau_darks_Summary_NBC.ipynb
+++ b/notebooks/Jungfrau/Jungfrau_darks_Summary_NBC.ipynb
@@ -230,7 +230,7 @@
    "outputs": [],
    "source": [
     "def badpx(constant_name):\n",
-    "    return True if \"bad\" in constant_name.lower() else False\n",
+    "    return \"bad\" in constant_name.lower()\n",
     "\n",
     "\n",
     "def bp_entry(bp):\n",