Skip to content
Snippets Groups Projects
Commit 86daa0a5 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fix type inspection issue.


Signed-off-by: default avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent c5cf192c
No related branches found
Tags v0.20.1
1 merge request!105Maintenance/replace lecacy interp1d
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment