From 74064ec5ebe844301a2d81ecb37a1a299e18eaa8 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas.kluyver@xfel.eu>
Date: Wed, 14 Dec 2022 11:36:23 +0100
Subject: [PATCH] Use memory cell pattern only for dark constants

---
 notebooks/LPD/LPD_Correct_Fast.ipynb | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/notebooks/LPD/LPD_Correct_Fast.ipynb b/notebooks/LPD/LPD_Correct_Fast.ipynb
index e6e2ec88d..e28a84d32 100644
--- a/notebooks/LPD/LPD_Correct_Fast.ipynb
+++ b/notebooks/LPD/LPD_Correct_Fast.ipynb
@@ -267,13 +267,15 @@
     "        14: 'BadPixelsDark'  # should be np.uint32, but is np.float64\n",
     "    }\n",
     "\n",
-    "    dark_condition = [\n",
+    "    base_condition = [\n",
     "        dict(parameter_id=1, value=bias_voltage),  # Sensor bias voltage\n",
     "        dict(parameter_id=7, value=mem_cells),  # Memory cells\n",
     "        dict(parameter_id=15, value=capacitor),  # Feedback capacitor\n",
     "        dict(parameter_id=13, value=256),  # Pixels X\n",
     "        dict(parameter_id=14, value=256),  # Pixels Y\n",
-    "        dict(parameter_id=..., value=cell_ids_pattern_s),  # Memory cell order\n",
+    "    ]\n",
+    "    dark_condition = base_condition + [\n",
+    "        dict(parameter_id=142, value=cell_ids_pattern_s),  # Memory cell order\n",
     "    ]\n",
     "\n",
     "    illuminated_calibrations = {\n",
@@ -283,8 +285,7 @@
     "        44: 'RelativeGain'  # np.float32\n",
     "    }\n",
     "\n",
-    "    illuminated_condition = dark_condition.copy()\n",
-    "    illuminated_condition += [\n",
+    "    illuminated_condition = base_condition + [\n",
     "        dict(parameter_id=3, value=photon_energy),  # Source energy\n",
     "        dict(parameter_id=25, value=category)  # category\n",
     "    ]\n",
-- 
GitLab