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 fbfd75df4402fe8609899ff455386543937eae66..3befbb8e77473e2c984218ce7c4915ddf15d8946 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.mean(thiscell, axis=(0, 1)) != 0\n", + " nonzero_adc = np.any(thiscell != 0 , axis=(0, 1))\n", "\n", " # Exclude empty images with 0 pixels, before calculating offset and noise\n", " thiscell = thiscell[..., nonzero_adc]\n",