From 446263cba3c7f050974077cd8a0788d71282ffa7 Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Thu, 1 Feb 2024 18:08:54 +0100 Subject: [PATCH] remove usage of run-high and use raw_data_location_string --- .../Gotthard2/Characterize_Darks_Gotthard2_NBC.ipynb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/notebooks/Gotthard2/Characterize_Darks_Gotthard2_NBC.ipynb b/notebooks/Gotthard2/Characterize_Darks_Gotthard2_NBC.ipynb index 1ae5f953b..885d30e9f 100644 --- a/notebooks/Gotthard2/Characterize_Darks_Gotthard2_NBC.ipynb +++ b/notebooks/Gotthard2/Characterize_Darks_Gotthard2_NBC.ipynb @@ -85,6 +85,7 @@ " calcat_creation_time,\n", " get_constant_from_db_and_time,\n", " get_report,\n", + " raw_data_location_string,\n", " save_const_to_h5,\n", " send_to_db,\n", ")\n", @@ -120,7 +121,7 @@ "report = get_report(metadata_folder)\n", "\n", "# Run's creation time:\n", - "creation_time = calcat_creation_time(in_folder, run_high, creation_time)\n", + "creation_time = calcat_creation_time(in_folder, run_nums[0], creation_time)\n", "print(f\"Creation time: {creation_time}\")" ] }, @@ -131,8 +132,9 @@ "metadata": {}, "outputs": [], "source": [ - "run_dc = RunDirectory(in_folder / f\"r{run_high:04d}\")\n", - "file_loc = f\"proposal:{run_dc.run_metadata()['proposalNumber']} runs:{run_high} {run_med} {run_low}\" # noqa\n", + "run_dc = RunDirectory(in_folder / f\"r{run_nums[0]:04d}\")\n", + "file_loc = raw_data_location_string(\n", + " f\"p{run_dc.run_metadata()['proposalNumber']}\", 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))" ] -- GitLab