From 2025432386ed56aee6c1c7819a831f39cfaf67a5 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas.kluyver@xfel.eu>
Date: Fri, 16 Dec 2022 17:01:27 +0100
Subject: [PATCH] Add warning for missing constants in YAML file

---
 notebooks/LPD/LPD_Correct_Fast.ipynb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/notebooks/LPD/LPD_Correct_Fast.ipynb b/notebooks/LPD/LPD_Correct_Fast.ipynb
index 443afdcdc..cfbd04876 100644
--- a/notebooks/LPD/LPD_Correct_Fast.ipynb
+++ b/notebooks/LPD/LPD_Correct_Fast.ipynb
@@ -241,6 +241,7 @@
     "\n",
     "        for calibration_name, ccv in ccvs['constants'].items():\n",
     "            if ccv['file-path'] is None:\n",
+    "                warnings.warn(f\"Missing {calibration_name} for {da}\")\n",
     "                continue\n",
     "\n",
     "            dtype = np.uint32 if calibration_name.startswith('BadPixels') else np.float32\n",
-- 
GitLab