From c0df4c8cbf19472299349bd5e20b94b43331d162 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas.kluyver@xfel.eu>
Date: Thu, 6 Apr 2023 13:21:52 +0200
Subject: [PATCH] Fix comparison with previous constants

---
 notebooks/LPDMini/LPD_Mini_Char_Darks_NBC.ipynb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/notebooks/LPDMini/LPD_Mini_Char_Darks_NBC.ipynb b/notebooks/LPDMini/LPD_Mini_Char_Darks_NBC.ipynb
index 894451c8c..c46d190b4 100644
--- a/notebooks/LPDMini/LPD_Mini_Char_Darks_NBC.ipynb
+++ b/notebooks/LPDMini/LPD_Mini_Char_Darks_NBC.ipynb
@@ -831,7 +831,7 @@
     "            ax = fig.add_subplot(1, 2, 1)\n",
     "\n",
     "            _ = heatmapPlot(data[:510, :], add_panels=True,\n",
-    "                            y_label='Momery Cell ID', x_label='Tile ID',\n",
+    "                            y_label='Memory Cell ID', x_label='Tile ID',\n",
     "                            lut_label=label, use_axis=ax,\n",
     "                            panel_y_label=label, panel_x_label=label,\n",
     "                            cmap='viridis',  # cb_loc='right',cb_aspect=15,\n",
@@ -853,12 +853,12 @@
     "                else:\n",
     "                    dataold[dataold>0]=1.0\n",
     "\n",
-    "                data = data.reshape(data.shape[0], 32, 2, 128)    \n",
-    "                data = np.nanmean(data, axis=(1, 3))\n",
+    "                dataold = dataold.reshape(dataold.shape[0], 32, 2, 128)    \n",
+    "                dataold = np.nanmean(dataold, axis=(1, 3))\n",
     "                dataold = dataold - data\n",
     "\n",
     "                _ = heatmapPlot(dataold[:510, :], add_panels=True,\n",
-    "                                y_label='Momery Cell ID', x_label='Tile ID',\n",
+    "                                y_label='Memory Cell ID', x_label='Tile ID',\n",
     "                                lut_label=label, use_axis=ax,\n",
     "                                panel_y_label=label, panel_x_label=label,\n",
     "                                cmap='viridis',  # cb_loc='right',cb_aspect=15,\n",
-- 
GitLab