From 2f81a439bb3e57e85c854bc893694625abadee0d Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Wed, 19 Jan 2022 14:26:30 +0100 Subject: [PATCH] plot first cell in burst and single cell --- .../Jungfrau_Gain_Correct_and_Verify_NBC.ipynb | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb index c511a587b..4189dd347 100644 --- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb +++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb @@ -320,7 +320,7 @@ " if memory_cells == 1:\n", " g_data[index, ...] = g\n", " else:\n", - " g_data[index, ...] = g[1, ...]\n", + " g_data[index, ...] = g[0, ...]\n", " # Select memory cells\n", " \n", " # TODO: This needs to be revisited.\n", @@ -411,7 +411,6 @@ " print(f\"\\t- WARNING: No image data for {ofile_name}: data shape is {dshape}\")\n", " continue\n", "\n", - " sensor_size = dshape[1:]\n", " # load number of data available, including trains with empty data.\n", " n_trains = len(seq_dc.train_ids)\n", "\n", @@ -483,13 +482,9 @@ "\n", " # Prepare plotting arrays\n", " step_timer.start()\n", - " if memory_cells == 1:\n", - " fim_data[local_karabo_da] = data_corr[:plt_images, 0, ...].copy()\n", - " msk_data[local_karabo_da] = mask_corr[:plt_images, 0, ...].copy()\n", - " else:\n", - " fim_data[local_karabo_da] = data_corr[:plt_images, 1, ...].copy()\n", - " msk_data[local_karabo_da] = mask_corr[:plt_images, 1, ...].copy()\n", - "\n", + " # TODO: Print out which cell is being selected for plotting\n", + " fim_data[local_karabo_da] = data_corr[:plt_images, 0, ...].copy()\n", + " msk_data[local_karabo_da] = mask_corr[:plt_images, 0, ...].copy()\n", " gim_data[local_karabo_da] = g_data\n", " rim_data[local_karabo_da] = r_data\n", " step_timer.done_step(f'Preparing plotting data of {plt_images} images:.')" -- GitLab