From 86daa0a5170c93e8fea2c7d8e31d32cfe12f8269 Mon Sep 17 00:00:00 2001 From: Daniel Scheffler <danschef@gfz-potsdam.de> Date: Tue, 5 Mar 2024 14:43:50 +0100 Subject: [PATCH] Fix type inspection issue. Signed-off-by: Daniel Scheffler <danschef@gfz-potsdam.de> --- enpt/processors/dead_pixel_correction/dead_pixel_correction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enpt/processors/dead_pixel_correction/dead_pixel_correction.py b/enpt/processors/dead_pixel_correction/dead_pixel_correction.py index 89f04df1..13ffb740 100644 --- a/enpt/processors/dead_pixel_correction/dead_pixel_correction.py +++ b/enpt/processors/dead_pixel_correction/dead_pixel_correction.py @@ -117,7 +117,7 @@ class Dead_Pixel_Corrector(object): if deadpixel_map.shape != image2correct.shape: raise ValueError("Dead pixel map and image to be corrected must have equal shape.") - band_indices_with_nodata = np.argwhere(np.any(np.any(deadpixel_map, axis=0), axis=0)).flatten() + band_indices_with_nodata = np.argwhere(np.any(np.any(deadpixel_map[:], axis=0), axis=0)).flatten() image_sub = image2correct[:, :, band_indices_with_nodata] deadpixel_map_sub = deadpixel_map[:, :, band_indices_with_nodata] -- GitLab