From 3912015089a78fc60067eba33145aff929e9e1c9 Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Thu, 24 Mar 2022 07:27:27 +0100 Subject: [PATCH] clean up some of leftover changes --- .../Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb index a6aaca61d..573871a0d 100644 --- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb +++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb @@ -79,9 +79,7 @@ "import pasha as psh\n", "import tabulate\n", "from IPython.display import Latex, Markdown, display\n", - "from extra_data import H5File, RunDirectory\n", - "from extra_data import RunDirectory, stack_detector_data, by_id\n", - "from extra_data import components\n", + "from extra_data import H5File, RunDirectory, by_id, components\n", "from extra_geom import JUNGFRAUGeometry\n", "from matplotlib.colors import LogNorm\n", "\n", @@ -92,7 +90,6 @@ "from cal_tools.tools import (\n", " get_constant_from_db_and_time,\n", " get_dir_creation_date,\n", - " get_pdu_from_db,\n", " map_seq_files,\n", " write_compressed_frames,\n", ")\n", @@ -195,7 +192,6 @@ " print(f\"Run is in burst mode.\\n\"\n", " f\"Storage cell start: {sc_start:02d}\")\n", "except KeyError as e:\n", - " sc_start = None\n", " print(\"WARNING: KeyError while reading number of memory cells.\")\n", " if mem_cells == 0:\n", " memory_cells = 1\n", @@ -876,8 +872,7 @@ "metadata": {}, "outputs": [], "source": [ - "display(Markdown(\n", - " f\"#### Bad pixels image for train {tid} and cellId {sc_start}\"))\n", + "display(Markdown(f\"#### Bad pixels image for train {tid}\"))\n", "\n", "fig = plt.figure(figsize=(18, 20))\n", "ax = fig.add_subplot(111)\n", -- GitLab