diff --git a/notebooks/Gotthard2/Characterize_Darks_Gotthard2_NBC.ipynb b/notebooks/Gotthard2/Characterize_Darks_Gotthard2_NBC.ipynb index 1ae5f953bca5285e1d617ea521e478fa711b8ba0..885d30e9f0030d1fbc72759e51f755faa22c747e 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))" ]