From 875c3d44d1e5b2ff0343171ce0fdac4d397d077b Mon Sep 17 00:00:00 2001
From: ahmedk <karim.ahmed@xfel.eu>
Date: Thu, 20 Oct 2022 10:08:17 +0200
Subject: [PATCH] loose np.where

---
 .../Jungfrau_dark_analysis_all_gains_burst_mode_NBC.ipynb       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/notebooks/Jungfrau/Jungfrau_dark_analysis_all_gains_burst_mode_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_dark_analysis_all_gains_burst_mode_NBC.ipynb
index 28d3a4d32..fbfd75df4 100644
--- a/notebooks/Jungfrau/Jungfrau_dark_analysis_all_gains_burst_mode_NBC.ipynb
+++ b/notebooks/Jungfrau/Jungfrau_dark_analysis_all_gains_burst_mode_NBC.ipynb
@@ -302,7 +302,7 @@
     "\n",
     "            # Identify cells/trains with images of 0 pixels.\n",
     "            # TODO: An investigation is ongoing by DET to identify reason for these empty images.\n",
-    "            nonzero_adc = np.where(np.mean(thiscell, axis=(0, 1))!=0)[0]\n",
+    "            nonzero_adc = np.mean(thiscell, axis=(0, 1)) != 0\n",
     "\n",
     "            # Exclude empty images with 0 pixels, before calculating offset and noise\n",
     "            thiscell = thiscell[..., nonzero_adc]\n",
-- 
GitLab