From 33654a013452782a40b94d2f8a3113b3faee5e77 Mon Sep 17 00:00:00 2001
From: ahmedk <karim.ahmed@xfel.eu>
Date: Tue, 9 Jan 2024 09:29:23 +0100
Subject: [PATCH] move corr_data_source to first nb cell

---
 notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb b/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb
index a577130fb..4623fea01 100644
--- a/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb
+++ b/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb
@@ -64,6 +64,7 @@
     "control_template = \"CONTROL\"  # control template used to read CONTROL keys.\n",
     "ctrl_source_template = \"{}/DET/{}\"  # template for control source name (filled with karabo_id_control)\n",
     "karabo_id_control = \"\"  # Control karabo ID. Set to empty string to use the karabo-id\n",
+    "corr_data_source = \"{}/DET/{}:daqOutput\"  # Correction data source. filled with karabo_id and correction receiver\n",
     "\n",
     "# Parameters for calibration database.\n",
     "cal_db_interface = \"tcp://max-exfl-cal001:8016#8025\"  # the database interface to use.\n",
@@ -398,7 +399,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "corr_data_source = f\"{karabo_id}/DET/{corr_receiver}:daqOutput\"\n",
+    "corr_data_source = corr_data_source.format(karabo_id, corr_receiver)\n",
     "\n",
     "for raw_file in seq_files:\n",
     "\n",
-- 
GitLab