From a15f48b12dd5d29a8717ada9f1b6ab9fb63b9790 Mon Sep 17 00:00:00 2001
From: Karim Ahmed <karim.ahmed@xfel.eu>
Date: Fri, 6 Jan 2023 10:33:10 +0100
Subject: [PATCH] Revert "Merge branch 'fix/store_roi_only_if_defined' into
 'master'"

This reverts merge request !772
---
 .../Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb    | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
index 29b213b34..1b5e972de 100644
--- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
+++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
@@ -440,10 +440,9 @@
     "    module_no = int(karabo_da[-2:])\n",
     "    params_source = f'{karabo_id}/ROIPROC/{karabo_da}'\n",
     "    rois_source = f'{params_source}:output'\n",
-    "    if roi_definitions != [-1]:\n",
-    "        # Create Instrument and Control sections to later add datasets.\n",
-    "        outp_source = ofile.create_instrument_source(rois_source)\n",
-    "        ctrl_source = ofile.create_control_source(params_source)\n",
+    "    # Create Instrument and Control sections to later add datasets.\n",
+    "    outp_source = ofile.create_instrument_source(rois_source)\n",
+    "    ctrl_source = ofile.create_control_source(params_source)\n",
     "    for i in range(len(roi_definitions) // 6):\n",
     "        roi_module, a1, a2, b1, b2, mean_axis = roi_definitions[i*6 : (i+1)*6]\n",
     "        if roi_module == module_no:\n",
-- 
GitLab