From 6b7ffe71d46431e882872677cf50854f23ff3ac3 Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Wed, 24 Jul 2024 11:36:49 +0200 Subject: [PATCH] fix: remove sort from dark nb and add hard code daqOutput channel in the receiver names to avoid connection with ctrl device --- notebooks/Gotthard2/Characterize_Darks_Gotthard2_NBC.ipynb | 4 ++-- notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notebooks/Gotthard2/Characterize_Darks_Gotthard2_NBC.ipynb b/notebooks/Gotthard2/Characterize_Darks_Gotthard2_NBC.ipynb index 07f3ee0d6..547fc77e3 100644 --- a/notebooks/Gotthard2/Characterize_Darks_Gotthard2_NBC.ipynb +++ b/notebooks/Gotthard2/Characterize_Darks_Gotthard2_NBC.ipynb @@ -135,8 +135,8 @@ "run_dc = RunDirectory(in_folder / f\"r{run_nums[0]:04d}\")\n", "proposal = list(filter(None, str(in_folder).strip('/').split('/')))[-2]\n", "file_loc = raw_data_location_string(proposal, run_nums)\n", - "receiver_names = [f\"*{receiver_template.format(x)}*\" for x in receiver_affixes]\n", - "data_sources = sorted(list(run_dc.select(receiver_names).all_sources))" + "receiver_names = [f\"*{receiver_template.format(x)}:daqOutput\" for x in receiver_affixes]\n", + "data_sources = list(run_dc.select(receiver_names).all_sources)" ] }, { diff --git a/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb b/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb index 38a5d0ed4..03ece0877 100644 --- a/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb +++ b/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb @@ -241,7 +241,7 @@ "print(f\"Process modules: {db_modules} for run {run}\")\n", "\n", "# Create the correction receiver name.\n", - "receiver_names = [f\"*{receiver_template.format(x)}*\" for x in receiver_affixes]\n", + "receiver_names = [f\"*{receiver_template.format(x)}:daqOutput\" for x in receiver_affixes]\n", "data_sources = list(run_dc.select(receiver_names).all_sources)\n", "\n", "if not corr_receiver:\n", -- GitLab