From 4190b3d3a3227c49183313d4be733cfca5ab4970 Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Tue, 7 Nov 2023 15:29:21 +0100 Subject: [PATCH] move the gain mode conversion within the automatic reading condition --- .../Jungfrau_Gain_Correct_and_Verify_NBC.ipynb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb index b100cec8a..6948af130 100644 --- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb +++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb @@ -181,15 +181,15 @@ "if gain_mode < 0:\n", " gain_mode = ctrl_data.get_gain_mode()\n", " print(f\"Gain mode is {gain_mode} ({ctrl_data.run_mode})\")\n", + " # JF corrections in burst mode are only supported when no gain switching occurs.\n", + " # Always retrieve fixed gain constant for burst mode.\n", + " if gain_mode == 0 and mem_cells > 1:\n", + " print(\"By default fixed gain constant will be retrieved for burst mode data,\"\n", + " \" even for dynamic gain data.\")\n", + " gain_mode = 1\n", "else:\n", " print(f\"Gain mode is manually set to {gain_mode}.\")\n", - "\n", - "# JF corrections in burst mode are only supported when no gain switching occurs.\n", - "# Always retrieve fixed gain constant for burst mode.\n", - "if gain_mode == 1 and mem_cells > 1:\n", - " print(\"By default fixed gain constant will be retrieved for burst mode data,\"\n", - " \" even for dynamic gain data.\")\n", - " gain_mode = 1" + "\n" ] }, { -- GitLab