From 525daec3259e8043e688539237c8ae5863c2fabc Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Mon, 27 May 2024 11:31:48 +0200 Subject: [PATCH] fix: remove unneeded changes --- .../Jungfrau_Gain_Correct_and_Verify_NBC.ipynb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb index 92be5a793..49feebf94 100644 --- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb +++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb @@ -783,20 +783,11 @@ " out_folder / f for f in fnmatch.filter(corrected_files, f\"*{run}*S{first_seq:05d}*\")\n", "]\n", "\n", - "# TODO: replace with CALCAT value.\n", - "if \"1M\" in karabo_id:\n", - " nmods = 2\n", - "elif \"4M\" in karabo_id:\n", - " nmods = 8\n", - "else: # 500K\n", - " nmods = 1\n", - "\n", "with DataCollection.from_paths(seq_corrected_files) as corr_dc:\n", " # Reading CORR data for plotting.\n", " jf_corr = components.JUNGFRAU(\n", " corr_dc,\n", " detector_name=karabo_id,\n", - " n_modules=nmods,\n", " ).select_trains(np.s_[:plot_trains])\n", " tid, jf_corr_data = next(iter(jf_corr.trains(require_all=True)))\n", "\n", @@ -810,7 +801,7 @@ "with RunDirectory(f\"{in_folder}/r{run:04d}/\", f\"*S{first_seq:05d}*\", _use_voview=False) as raw_dc:\n", " # Reading RAW data for plotting.\n", " jf_raw = components.JUNGFRAU(\n", - " raw_dc, detector_name=karabo_id, n_modules=nmods, first_modno=jf_corr._modnos_start_at\n", + " raw_dc, detector_name=karabo_id\n", " ).select_trains(np.s_[:plot_trains])\n", "\n", "raw = jf_raw.get_array(\"data.adc\")[:, :, cell_idx_preview, ...]\n", -- GitLab