From e2c6f1f0f37f6a5db49d608dd6c4a184730f3ff8 Mon Sep 17 00:00:00 2001
From: Egor Sobolev <egor.sobolev@xfel.eu>
Date: Wed, 10 Jul 2024 19:48:14 +0200
Subject: [PATCH] Appy suggestions, small fixes

---
 notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb
index e62e40745..49bbda86a 100644
--- a/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb
+++ b/notebooks/AGIPD/AGIPD_Correct_and_Verify.ipynb
@@ -581,7 +581,7 @@
     "    else:\n",
     "        data_units = 'keV'\n",
     "        if photon_energy_warn:\n",
-    "            warning(photon_energy_warn, '. Use 12 keV for lit-pixel counter threshold')\n",
+    "            warning(photon_energy_warn + '. Use 12 keV for lit-pixel counter threshold')\n",
     "            litpx_threshold = 12.\n",
     "        else:\n",
     "            litpx_threshold = photon_energy\n",
@@ -598,7 +598,8 @@
     "    litpx_threshold *= rounding_threshold\n",
     "    print(f\"Count lit-pixels with signal above {litpx_threshold:.3g} {data_units}\")\n",
     "else:\n",
-    "    litpx_threshold = 1e20"
+    "    # dummy value, that is not expected to be used\n",
+    "    litpx_threshold = 42"
    ]
   },
   {
-- 
GitLab