From c306b809b1b603a4b419281cec6b1ed711fdbc34 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas.kluyver@xfel.eu>
Date: Thu, 14 Nov 2024 19:06:50 +0100
Subject: [PATCH] Fix up frame_counts in parallel gain non-combining case

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

diff --git a/notebooks/LPD/LPD_Correct_Fast.ipynb b/notebooks/LPD/LPD_Correct_Fast.ipynb
index 7a1e23e81..4a93071a5 100644
--- a/notebooks/LPD/LPD_Correct_Fast.ipynb
+++ b/notebooks/LPD/LPD_Correct_Fast.ipynb
@@ -517,6 +517,8 @@
     "            in_cell = tmp_cell[sel]\n",
     "            in_pulse = tmp_pulse[sel]\n",
     "            in_raw = in_raw[sel]\n",
+    "\n",
+    "            frame_counts -= (3 * drop_last_frames_parallelgain)\n",
     "            \n",
     "            # Disable gain indices to not combine.\n",
     "            parallel_gain_indices = None\n",
-- 
GitLab