From b674cd1c12844ae45661af0daea07c18f78eef89 Mon Sep 17 00:00:00 2001 From: Philipp Schmidt <philipp.schmidt@xfel.eu> Date: Wed, 13 Nov 2024 14:39:34 +0100 Subject: [PATCH] (fixup) ensure frame count is divisible by 3 in parallel gain mode --- 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 4fcd7e16c..733627b88 100644 --- a/notebooks/LPD/LPD_Correct_Fast.ipynb +++ b/notebooks/LPD/LPD_Correct_Fast.ipynb @@ -511,6 +511,7 @@ " parallel_gain_indices = None\n", " \n", " if parallel_gain:\n", + " assert (frame_counts % 3 == 0).all(), 'frame count not divisible by 3 in parallel gain mode;\n", " actual_frame_counts = frame_counts // 3\n", "\n", " # Indices map where to find each of the high/medium/low gain images for each actual\n", -- GitLab